46 references to Onelazy
System.Text.RegularExpressions (46)
System\Text\RegularExpressions\RegexCompiler.cs (2)
2753
case RegexNodeKind.
Onelazy
:
3503
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
;
1227
case RegexNodeKind.Oneloop or RegexNodeKind.Notoneloop or RegexNodeKind.Setloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when required.M == required.N:
1523
case RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
when node.M > 0:
1557
case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
:
1785
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:
1811
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when nextNode.Kind == RegexNodeKind.One && currentNode.Ch == nextNode.Ch:
1827
case RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
when
1879
case RegexNodeKind.One when (nextNode.Kind is RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
) && currentNode.Ch == nextNode.Ch:
1990
case RegexNodeKind.
Onelazy
or RegexNodeKind.Notonelazy or RegexNodeKind.Setlazy when CanBeMadeAtomic(node, subsequent, iterateNullableSubsequent: false, allowLazy: true):
2006
node.Kind -= RegexNodeKind.
Onelazy
- RegexNodeKind.Oneloop; // lazy to greedy
2347
case RegexNodeKind.
Onelazy
when allowLazy:
2353
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && node.Ch != subsequent.Ch:
2365
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:
2386
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && node.Ch == subsequent.Ch:
2401
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2412
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !RegexCharClass.CharInClass(subsequent.Ch, node.Str!):
2448
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M > 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2459
case RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic when subsequent.M == 0 && !CharInStartingOrEndingSet(subsequent.Ch):
2601
case RegexNodeKind.
Onelazy
:
2712
RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or
2949
RegexNodeKind.Oneloop or RegexNodeKind.
Onelazy
or RegexNodeKind.Oneloopatomic or
3017
MakeRep(lazy ? RegexNodeKind.
Onelazy
: RegexNodeKind.Oneloop, min, max);
3147
public bool IsOneFamily => Kind is RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.
Onelazy
;
3205
case RegexNodeKind.
Onelazy
:
3244
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));