35 references to Alternate
System.Text.RegularExpressions (35)
System\Text\RegularExpressions\RegexNode.cs (22)
279case RegexNodeKind.Alternate: 453if ((existingChild.Kind is RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional or RegexNodeKind.Loop or RegexNodeKind.Lazyloop) && 466case RegexNodeKind.Alternate: 539RegexNodeKind.Alternate => ReduceAlternation(), 560Debug.Assert(Kind is RegexNodeKind.Alternate or RegexNodeKind.Concatenate); 5630 => new RegexNode(Kind == RegexNodeKind.Alternate ? RegexNodeKind.Nothing : RegexNodeKind.Empty, Options), 643case RegexNodeKind.Alternate: 925Debug.Assert(Kind == RegexNodeKind.Alternate); 938if (node.Kind == RegexNodeKind.Alternate) 941if (node.Kind == RegexNodeKind.Alternate) 944if (node.Kind == RegexNodeKind.Alternate) 979if (at.Kind == RegexNodeKind.Alternate) 1077Debug.Assert(alternation.Kind == RegexNodeKind.Alternate); 1139var newAlternate = new RegexNode(RegexNodeKind.Alternate, alternation.Options); 1172Debug.Assert(node.Kind == RegexNodeKind.Alternate); 1215Debug.Assert(alternation.Kind == RegexNodeKind.Alternate); 1309var newAlternate = new RegexNode(RegexNodeKind.Alternate, startingNodeOptions); 1904case RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional: 2099case RegexNodeKind.Alternate: 2212case RegexNodeKind.Alternate: 2289case RegexNodeKind.Alternate: 2406case RegexNodeKind.Alternate:
System\Text\RegularExpressions\RegexParser.cs (1)
2068_alternation = new RegexNode(RegexNodeKind.Alternate, _options);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (5)
242case RegexNodeKind.Alternate: 377case RegexNodeKind.Alternate when !rtl: // for RTL we'd need to be matching the suffixes of the alternation cases 709case RegexNodeKind.Alternate when thorough: 1057case RegexNodeKind.Alternate: 1309case RegexNodeKind.Alternate:
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (2)
49case RegexNodeKind.Alternate: 98RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional => true,
System\Text\RegularExpressions\RegexWriter.cs (2)
220case RegexNodeKind.Alternate | BeforeChild: 228case RegexNodeKind.Alternate | AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
85case RegexNodeKind.Alternate: 221case 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>