42 references to Setloop
System.Text.RegularExpressions (42)
System\Text\RegularExpressions\RegexCompiler.cs (1)
1249
Debug.Assert(target.LoopNode.Kind is RegexNodeKind.
Setloop
or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic);
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
792
Debug.Assert(loopNode.Kind is RegexNodeKind.
Setloop
or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic);
System\Text\RegularExpressions\RegexNode.cs (31)
91
RegexNodeKind.Setlazy or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic);
161
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.
Setloop
:
254
case RegexNodeKind.
Setloop
:
297
case RegexNodeKind.
Setloop
:
384
case RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.Notoneloop or RegexNodeKind.Notoneloopatomic or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic when node.N == int.MaxValue:
431
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.
Setloop
:
545
RegexNodeKind.Set or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy => ReduceSet(),
634
case RegexNodeKind.
Setloop
:
791
case RegexNodeKind.
Setloop
:
876
Debug.Assert(Kind is RegexNodeKind.Set or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy);
890
Kind == RegexNodeKind.
Setloop
? RegexNodeKind.Oneloop :
900
Kind == RegexNodeKind.
Setloop
? RegexNodeKind.Notoneloop :
1109
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.
Setloop
or RegexNodeKind.Onelazy or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when required.M == required.N:
1405
case RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy when node.M > 0:
1441
case RegexNodeKind.Set or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy:
1664
case RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy when nextNode.Kind == currentNode.Kind && currentNode.Str == nextNode.Str:
1691
case RegexNodeKind.
Setloop
or RegexNodeKind.Setlazy when nextNode.Kind == RegexNodeKind.Set && currentNode.Str == nextNode.Str:
1759
case RegexNodeKind.Set when (nextNode.Kind is RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy) && currentNode.Str == nextNode.Str:
1875
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.
Setloop
when CanBeMadeAtomic(node, subsequent, iterateNullableSubsequent: true, allowLazy: false):
2125
case RegexNodeKind.Setlazy or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic when subsequent.M > 0 && !RegexCharClass.CharInClass(node.Ch, subsequent.Str!):
2133
case RegexNodeKind.Setlazy or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic when subsequent.M == 0 && !RegexCharClass.CharInClass(node.Ch, subsequent.Str!):
2165
case RegexNodeKind.
Setloop
:
2172
case RegexNodeKind.Setlazy or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic when subsequent.M > 0 && !RegexCharClass.MayOverlap(node.Str!, subsequent.Str!):
2179
case RegexNodeKind.Setlazy or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic when subsequent.M == 0 && !RegexCharClass.MayOverlap(node.Str!, subsequent.Str!):
2279
case RegexNodeKind.
Setloop
:
2387
RegexNodeKind.Setlazy or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic:
2555
(child.Kind is RegexNodeKind.
Setloop
or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic && child.M == child.N))
2640
RegexNodeKind.
Setloop
or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic
2833
public bool IsSetFamily => Kind is RegexNodeKind.Set or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy;
2920
case RegexNodeKind.
Setloop
:
2935
case RegexNodeKind.
Setloop
:
System\Text\RegularExpressions\RegexNodeKind.cs (1)
72
/// This is purely a representational optimization, equivalent to a <see cref="Atomic"/> wrapped around a <see cref="
Setloop
"/>.
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (4)
156
case RegexNodeKind.Set or RegexNodeKind.
Setloop
or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic when !RegexCharClass.IsNegated(node.Str!): // negated sets are too complex to analyze
641
case RegexNodeKind.Setlazy or RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic when node.M > 0:
972
case RegexNodeKind.Set or RegexNodeKind.
Setloop
or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic:
1135
if (firstChild.Kind is not (RegexNodeKind.
Setloop
or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy) || firstChild.N != int.MaxValue)
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (1)
51
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.
Setloop
or RegexNodeKind.Onelazy or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when node.M != node.N:
System\Text\RegularExpressions\RegexWriter.cs (1)
403
case RegexNodeKind.
Setloop
:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
121
case RegexNodeKind.
Setloop
:
System\Text\RegularExpressions\Symbolic\SymbolicRegexKind.cs (1)
15
/// <summary>A node that matches a loop (e.g. <see cref="RegexNodeKind.Loop"/>, <see cref="RegexNodeKind.Lazyloop"/>, <see cref="RegexNodeKind.
Setloop
"/>, etc.).</summary>