39 references to Setlazy
System.Text.RegularExpressions (39)
System\Text\RegularExpressions\RegexCompiler.cs (1)
1246
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 (29)
91
RegexNodeKind.
Setlazy
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic);
167
case RegexNodeKind.Onelazy or RegexNodeKind.Notonelazy or RegexNodeKind.
Setlazy
:
253
case RegexNodeKind.
Setlazy
:
299
case RegexNodeKind.
Setlazy
:
385
case RegexNodeKind.Onelazy or RegexNodeKind.Notonelazy or RegexNodeKind.
Setlazy
when node.N == int.MaxValue && !atomicByAncestry:
432
case RegexNodeKind.Onelazy or RegexNodeKind.Notonelazy or RegexNodeKind.
Setlazy
:
545
RegexNodeKind.Set or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.
Setlazy
=> ReduceSet(),
637
case RegexNodeKind.
Setlazy
:
803
case RegexNodeKind.
Setlazy
:
876
Debug.Assert(Kind is RegexNodeKind.Set or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.
Setlazy
);
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:
1884
case RegexNodeKind.Onelazy or RegexNodeKind.Notonelazy or RegexNodeKind.
Setlazy
when CanBeMadeAtomic(node, subsequent, iterateNullableSubsequent: false, allowLazy: true):
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!):
2166
case RegexNodeKind.
Setlazy
when allowLazy:
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!):
2278
case RegexNodeKind.
Setlazy
:
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
;
2922
case RegexNodeKind.
Setlazy
:
2937
case RegexNodeKind.
Setlazy
:
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)
405
case RegexNodeKind.
Setlazy
:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
122
case RegexNodeKind.
Setlazy
:
128
result.AddLast(_builder.CreateLoop(_builder.CreateSingleton(setBdd), node.Kind == RegexNodeKind.
Setlazy
, node.M, node.N));