46 references to Onelazy
System.Text.RegularExpressions (46)
System\Text\RegularExpressions\RegexCompiler.cs (2)
2752
case RegexNodeKind.
Onelazy
:
3504
Debug.Assert(node.Kind is RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy, $"Unexpected type: {node.Kind}");
System\Text\RegularExpressions\RegexNode.cs (35)
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
:
425
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when node.N == int.MaxValue && !atomicByAncestry:
477
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy:
687
case RegexNodeKind.
Onelazy
:
860
case RegexNodeKind.
Onelazy
:
910
child.MakeRep(u.Kind == RegexNodeKind.Lazyloop ? RegexNodeKind.
Onelazy
: RegexNodeKind.Oneloop, u.M, u.N);
974
RegexNodeKind.
Onelazy
;
1218
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.Setloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when required.M == required.N:
1514
case RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
when node.M > 0:
1548
case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
:
1776
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:
1802
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when nextNode.Kind == RegexNodeKind.One && currentNode.Ch == nextNode.Ch:
1818
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when
1870
case RegexNodeKind.One when (nextNode.Kind is RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
) && currentNode.Ch == nextNode.Ch:
1981
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when CanBeMadeAtomic(node, subsequent, iterateNullableSubsequent: false, allowLazy: true):
1997
node.Kind -= RegexNodeKind.
Onelazy
- RegexNodeKind.Oneloop; // lazy to greedy
2342
case RegexNodeKind.
Onelazy
when allowLazy:
2348
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && node.Ch != subsequent.Ch:
2360
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && node.Ch != subsequent.Ch:
2376
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && node.Ch == subsequent.Ch:
2381
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && node.Ch == subsequent.Ch:
2396
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2407
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2443
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2454
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2596
case RegexNodeKind.
Onelazy
:
2707
RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or
2944
RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloopatomic or
3012
MakeRep(lazy ? RegexNodeKind.
Onelazy
: RegexNodeKind.Oneloop, min, max);
3142
public bool IsOneFamily => Kind is RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
;
3200
case RegexNodeKind.
Onelazy
:
3239
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\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 (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));