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:
734
case RegexNodeKind.
Onelazy
:
907
case RegexNodeKind.
Onelazy
:
957
child.MakeRep(u.Kind == RegexNodeKind.Lazyloop ? RegexNodeKind.
Onelazy
: RegexNodeKind.Oneloop, u.M, u.N);
1021
RegexNodeKind.
Onelazy
;
1257
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.Setloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when required.M == required.N:
1632
case RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
when node.M > 0:
1666
case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
:
1894
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:
1920
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when nextNode.Kind == RegexNodeKind.One && currentNode.Ch == nextNode.Ch:
1936
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when
1988
case RegexNodeKind.One when (nextNode.Kind is RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
) && currentNode.Ch == nextNode.Ch:
2099
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when CanBeMadeAtomic(node, subsequent, iterateNullableSubsequent: false, allowLazy: true):
2115
node.Kind -= RegexNodeKind.
Onelazy
- RegexNodeKind.Oneloop; // lazy to greedy
2520
case RegexNodeKind.
Onelazy
when allowLazy:
2526
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && node.Ch != subsequent.Ch:
2538
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && node.Ch != subsequent.Ch:
2554
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && node.Ch == subsequent.Ch:
2559
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 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2585
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2621
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2632
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2727
RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or
2841
case RegexNodeKind.
Onelazy
:
2952
RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or
3232
RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloopatomic or
3300
MakeRep(lazy ? RegexNodeKind.
Onelazy
: RegexNodeKind.Oneloop, min, max);
3438
public bool IsOneFamily => Kind is RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
;
3496
case RegexNodeKind.
Onelazy
:
3535
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));