35 references to Alternate
System.Text.RegularExpressions (35)
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
);
1139
var newAlternate = new RegexNode(RegexNodeKind.
Alternate
, alternation.Options);
1172
Debug.Assert(node.Kind == RegexNodeKind.
Alternate
);
1215
Debug.Assert(alternation.Kind == RegexNodeKind.
Alternate
);
1309
var newAlternate = new RegexNode(RegexNodeKind.
Alternate
, startingNodeOptions);
1904
case RegexNodeKind.
Alternate
or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional:
2099
case RegexNodeKind.
Alternate
:
2212
case RegexNodeKind.
Alternate
:
2289
case RegexNodeKind.
Alternate
:
2406
case RegexNodeKind.
Alternate
:
System\Text\RegularExpressions\RegexParser.cs (1)
2068
_alternation = new RegexNode(RegexNodeKind.
Alternate
, _options);
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
:
1309
case RegexNodeKind.
Alternate
:
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (2)
49
case RegexNodeKind.
Alternate
:
98
RegexNodeKind.
Alternate
or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional => true,
System\Text\RegularExpressions\RegexWriter.cs (2)
220
case RegexNodeKind.
Alternate
| BeforeChild:
228
case RegexNodeKind.
Alternate
| AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
85
case RegexNodeKind.
Alternate
:
221
case RegexNodeKind.
Alternate
:
System\Text\RegularExpressions\Symbolic\SymbolicRegexKind.cs (1)
17
/// <summary>A node that matches if any of its nodes match and that matches them in a fixed order that mirrors how the backtracking engines operate (e.g. <see cref="RegexNodeKind.
Alternate
"/>).</summary>