47 references to Onelazy
System.Text.RegularExpressions (47)
System\Text\RegularExpressions\RegexCompiler.cs (3)
3000
case RegexNodeKind.
Onelazy
:
3675
case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
:
3811
Debug.Assert(node.Kind is RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy, $"Unexpected type: {node.Kind}");
System\Text\RegularExpressions\RegexNode.cs (36)
89
Debug.Assert(Kind is RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or
175
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy:
179
Kind += RegexNodeKind.Oneloopatomic - RegexNodeKind.
Onelazy
;
288
case RegexNodeKind.
Onelazy
:
439
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when node.N == int.MaxValue && !atomicByAncestry:
524
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy:
742
case RegexNodeKind.
Onelazy
:
915
case RegexNodeKind.
Onelazy
:
965
child.MakeRep(u.Kind == RegexNodeKind.Lazyloop ? RegexNodeKind.
Onelazy
: RegexNodeKind.Oneloop, u.M, u.N);
1029
RegexNodeKind.
Onelazy
;
1265
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.Setloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when required.M == required.N:
1643
case RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
when node.M > 0:
1677
case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
:
1905
case RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
or RegexNodeKind.Notoneloop or RegexNodeKind.Notoneloopatomic or RegexNodeKind.Notonelazy when nextNode.Kind == currentNode.Kind && currentNode.Ch == nextNode.Ch:
1931
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when nextNode.Kind == RegexNodeKind.One && currentNode.Ch == nextNode.Ch:
1947
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when
1999
case RegexNodeKind.One when (nextNode.Kind is RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
) && currentNode.Ch == nextNode.Ch:
2110
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when CanBeMadeAtomic(node, subsequent, iterateNullableSubsequent: false, allowLazy: true):
2126
node.Kind -= RegexNodeKind.
Onelazy
- RegexNodeKind.Oneloop; // lazy to greedy
2535
case RegexNodeKind.
Onelazy
when allowLazy:
2541
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && node.Ch != subsequent.Ch:
2553
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && node.Ch != subsequent.Ch:
2569
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && node.Ch == subsequent.Ch:
2574
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && node.Ch == subsequent.Ch:
2589
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2600
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2636
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2647
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2742
RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or
2856
case RegexNodeKind.
Onelazy
:
2967
RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or
3247
RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloopatomic or
3315
MakeRep(lazy ? RegexNodeKind.
Onelazy
: RegexNodeKind.Oneloop, min, max);
3453
public bool IsOneFamily => Kind is RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
;
3511
case RegexNodeKind.
Onelazy
:
3550
case RegexNodeKind.
Onelazy
:
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (4)
112
case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloopatomic when !ignoreCase || !RegexCharClass.ParticipatesInCaseConversion(node.Ch):
432
case RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
when node.M > 0:
609
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when node.M > 0:
954
case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloopatomic:
System\Text\RegularExpressions\RegexWriter.cs (2)
391
case RegexNodeKind.
Onelazy
:
394
Emit(((node.Kind is RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
) ?
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
107
case RegexNodeKind.
Onelazy
:
117
result.AddLast(_builder.CreateLoop(_builder.CreateSingleton(bdd), node.Kind is RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy, node.M, node.N));