45 references to Concatenate
System.Text.RegularExpressions (45)
System\Text\RegularExpressions\RegexNode.cs (26)
138Kind == RegexNodeKind.Concatenate && 278case RegexNodeKind.Concatenate: 379case RegexNodeKind.Concatenate: 386if (node.Parent is { Kind: RegexNodeKind.Concatenate } parent) 451case RegexNodeKind.Concatenate: 541RegexNodeKind.Concatenate => ReduceConcatenation(), 560Debug.Assert(Kind is RegexNodeKind.Alternate or RegexNodeKind.Concatenate); 1090if (child.Kind != RegexNodeKind.Concatenate || child.ChildCount() < 2) 1156var newConcat = new RegexNode(RegexNodeKind.Concatenate, alternation.Options); 1313ProcessOneOrMulti(branch.Kind == RegexNodeKind.Concatenate ? branch.Child(0) : branch, startingSpan); 1358var newConcat = new RegexNode(RegexNodeKind.Concatenate, startingNodeOptions); 1378RegexNode branch = Kind == RegexNodeKind.Concatenate ? Child(0) : this; 1410case RegexNodeKind.Concatenate: 1500Debug.Assert(Kind == RegexNodeKind.Concatenate); 1542Debug.Assert(Kind == RegexNodeKind.Concatenate); 1559if (at.Kind == RegexNodeKind.Concatenate && 1625Debug.Assert(Kind == RegexNodeKind.Concatenate); 1820if (Kind is not RegexNodeKind.Concatenate) 1845if (node.Kind is RegexNodeKind.Capture or RegexNodeKind.Concatenate) 1949if (node.Kind == RegexNodeKind.Concatenate) 2069case RegexNodeKind.Concatenate: 2214case RegexNodeKind.Concatenate: 2307case RegexNodeKind.Concatenate: 2436case RegexNodeKind.Concatenate: 2513Debug.Assert(Kind == RegexNodeKind.Concatenate, $"Expected Concatenate, got {Kind}"); 2629Debug.Assert(Kind == RegexNodeKind.Concatenate, $"Expected Concatenate, got {Kind}");
System\Text\RegularExpressions\RegexParser.cs (3)
521_concatenation = new RegexNode(RegexNodeKind.Concatenate, _options); 2069_concatenation = new RegexNode(RegexNodeKind.Concatenate, _options); 2086_concatenation = new RegexNode(RegexNodeKind.Concatenate, _options);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (8)
212case RegexNodeKind.Concatenate: 363case RegexNodeKind.Concatenate: 497case RegexNodeKind.Concatenate: 696case RegexNodeKind.Concatenate: 1040case RegexNodeKind.Concatenate: 1118if (node.Kind != RegexNodeKind.Concatenate) 1200while ((nextChild.Kind is RegexNodeKind.Atomic or RegexNodeKind.Capture or RegexNodeKind.Concatenate) || 1270case RegexNodeKind.Concatenate:
System\Text\RegularExpressions\RegexReplacement.cs (1)
39Debug.Assert(concat.Kind == RegexNodeKind.Concatenate, $"Expected Concatenate, got {concat.Kind}");
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (1)
105RegexNodeKind.Concatenate => i == childCount - 1,
System\Text\RegularExpressions\RegexWriter.cs (2)
215case RegexNodeKind.Concatenate | BeforeChild: 216case RegexNodeKind.Concatenate | AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (3)
84case RegexNodeKind.Concatenate: 211case RegexNodeKind.Concatenate: 285Debug.Assert(rootResult.Count == 1 || root.Kind == RegexNodeKind.Concatenate || root.Kind == RegexNodeKind.Capture);
System\Text\RegularExpressions\Symbolic\SymbolicRegexKind.cs (1)
13/// <summary>A node that matches a sequence of nodes (i.e. <see cref="RegexNodeKind.Concatenate"/>).</summary>