31 references to Alternate
System.Text.RegularExpressions.Generator (31)
RegexGenerator.Emitter.cs (1)
1666
Debug.Assert(node.Kind is RegexNodeKind.
Alternate
, $"Unexpected type: {node.Kind}");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (22)
279
case RegexNodeKind.
Alternate
:
453
if ((existingChild.Kind is RegexNodeKind.
Alternate
or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional or RegexNodeKind.Loop or RegexNodeKind.Lazyloop) &&
466
case RegexNodeKind.
Alternate
:
539
RegexNodeKind.
Alternate
=> ReduceAlternation(),
560
Debug.Assert(Kind is RegexNodeKind.
Alternate
or RegexNodeKind.Concatenate);
563
0 => new RegexNode(Kind == RegexNodeKind.
Alternate
? RegexNodeKind.Nothing : RegexNodeKind.Empty, Options),
643
case RegexNodeKind.
Alternate
:
925
Debug.Assert(Kind == RegexNodeKind.
Alternate
);
938
if (node.Kind == RegexNodeKind.
Alternate
)
941
if (node.Kind == RegexNodeKind.
Alternate
)
944
if (node.Kind == RegexNodeKind.
Alternate
)
979
if (at.Kind == RegexNodeKind.
Alternate
)
1077
Debug.Assert(alternation.Kind == RegexNodeKind.
Alternate
);
1143
var newAlternate = new RegexNode(RegexNodeKind.
Alternate
, alternation.Options);
1176
Debug.Assert(node.Kind == RegexNodeKind.
Alternate
);
1219
Debug.Assert(alternation.Kind == RegexNodeKind.
Alternate
);
1313
var newAlternate = new RegexNode(RegexNodeKind.
Alternate
, startingNodeOptions);
1908
case RegexNodeKind.
Alternate
or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional:
2103
case RegexNodeKind.
Alternate
:
2216
case RegexNodeKind.
Alternate
:
2293
case RegexNodeKind.
Alternate
:
2410
case RegexNodeKind.
Alternate
:
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (1)
2068
_alternation = new RegexNode(RegexNodeKind.
Alternate
, _options);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (5)
242
case RegexNodeKind.
Alternate
:
377
case RegexNodeKind.
Alternate
when !rtl: // for RTL we'd need to be matching the suffixes of the alternation cases
709
case RegexNodeKind.
Alternate
when thorough:
1057
case RegexNodeKind.
Alternate
:
1454
case RegexNodeKind.
Alternate
:
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexTreeAnalyzer.cs (2)
49
case RegexNodeKind.
Alternate
:
98
RegexNodeKind.
Alternate
or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional => true,