44 references to Lazyloop
System.Text.RegularExpressions (44)
System\Text\RegularExpressions\RegexCompiler.cs (4)
2769
case RegexNodeKind.
Lazyloop
:
3850
Debug.Assert(node.Kind is RegexNodeKind.
Lazyloop
, $"Unexpected type: {node.Kind}");
4697
Debug.Assert(node.Kind is RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
, $"Unexpected type: {node.Kind}");
4735
Debug.Assert(node.Kind is RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
, $"Unexpected type: {node.Kind}");
System\Text\RegularExpressions\RegexNode.cs (20)
215
case RegexNodeKind.
Lazyloop
:
303
case RegexNodeKind.
Lazyloop
:
498
if ((existingChild.Kind is RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional or RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
) &&
536
case RegexNodeKind.
Lazyloop
:
542
Debug.Assert(node.Kind is RegexNodeKind.Atomic or RegexNodeKind.Empty or RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
);
547
Debug.Assert(node.Kind is RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
);
550
if (node.Kind is RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
)
595
RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
=> ReduceLoops(),
826
Debug.Assert(Kind is RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
);
910
child.MakeRep(u.Kind == RegexNodeKind.
Lazyloop
? RegexNodeKind.Onelazy : RegexNodeKind.Oneloop, u.M, u.N);
1535
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when node.M > 0:
2011
case RegexNodeKind.
Lazyloop
when CanBeMadeAtomic(node, subsequent, iterateNullableSubsequent: false, allowLazy: true):
2038
else if (node.Kind is RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
)
2060
case RegexNodeKind.
Lazyloop
:
2298
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when subsequent.M > 0:
2423
case RegexNodeKind.
Lazyloop
when allowLazy:
2610
case RegexNodeKind.
Lazyloop
:
2717
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
:
3021
var result = new RegexNode(lazy ? RegexNodeKind.
Lazyloop
: RegexNodeKind.Loop, Options, min, max);
3250
case RegexNodeKind.
Lazyloop
:
System\Text\RegularExpressions\RegexNodeKind.cs (3)
46
/// This is purely a representational optimization, equivalent to a <see cref="
Lazyloop
"/> wrapped around a <see cref="One"/>.
50
/// This is purely a representational optimization, equivalent to a <see cref="
Lazyloop
"/> wrapped around a <see cref="Notone"/>.
54
/// This is purely a representational optimization, equivalent to a <see cref="
Lazyloop
"/> wrapped around a <see cref="Set"/>.
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (8)
226
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when node.M > 0:
439
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when node.M > 0:
493
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when node.M > 0:
686
case RegexNodeKind.
Lazyloop
or RegexNodeKind.Loop when node.M > 0:
1038
case RegexNodeKind.
Lazyloop
:
1225
(nextChild.Kind is RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
&& nextChild.M >= 1))
1303
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when node.M >= 1:
1362
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when leading && node.M >= 1:
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (3)
50
case RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when node.M != node.N:
76
case RegexNodeKind.
Lazyloop
:
111
RegexNodeKind.Loop or RegexNodeKind.
Lazyloop
when node.N == 1 => true,
System\Text\RegularExpressions\RegexWriter.cs (2)
312
case RegexNodeKind.
Lazyloop
| BeforeChild:
328
case RegexNodeKind.
Lazyloop
| AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (3)
87
case RegexNodeKind.
Lazyloop
:
251
case RegexNodeKind.
Lazyloop
:
260
result.AddLast(_builder.CreateLoop(body, node.Kind == RegexNodeKind.
Lazyloop
, node.M, node.N));
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>