52 references to Concatenate
System.Text.RegularExpressions (52)
System\Text\RegularExpressions\RegexCompiler.cs (3)
2039case RegexNodeKind.Concatenate when child.Child(0) == startingLiteralNode && (startingLiteralNode.Kind is RegexNodeKind.One or RegexNodeKind.Set or RegexNodeKind.Multi): 3003case RegexNodeKind.Concatenate: 3119Debug.Assert(node.Kind is RegexNodeKind.Concatenate, $"Unexpected type: {node.Kind}");
System\Text\RegularExpressions\RegexNode.cs (29)
138Kind == RegexNodeKind.Concatenate && 318case RegexNodeKind.Concatenate: 419case RegexNodeKind.Concatenate: 426if (node.Parent is { Kind: RegexNodeKind.Concatenate } parent) 496case RegexNodeKind.Concatenate when !rtl: 593RegexNodeKind.Concatenate => ReduceConcatenation(), 612Debug.Assert(Kind is RegexNodeKind.Alternate or RegexNodeKind.Concatenate); 1199if (child.Kind != RegexNodeKind.Concatenate || child.ChildCount() < 2) 1269var newConcat = new RegexNode(RegexNodeKind.Concatenate, alternation.Options); 1426ProcessOneOrMulti(branch.Kind == RegexNodeKind.Concatenate ? branch.Child(0) : branch, startingSpan); 1471var newConcat = new RegexNode(RegexNodeKind.Concatenate, startingNodeOptions); 1491RegexNode branch = Kind == RegexNodeKind.Concatenate ? Child(0) : this; 1593case RegexNodeKind.Concatenate: 1683Debug.Assert(Kind == RegexNodeKind.Concatenate); 1725Debug.Assert(Kind == RegexNodeKind.Concatenate); 1742if (at.Kind == RegexNodeKind.Concatenate && 1808Debug.Assert(Kind == RegexNodeKind.Concatenate); 2010if (Kind is not RegexNodeKind.Concatenate) 2034while (node.Kind is RegexNodeKind.Capture or RegexNodeKind.Concatenate) 2086while (loopChild.Kind is RegexNodeKind.Capture or RegexNodeKind.Concatenate) 2339while (node.Kind is RegexNodeKind.Capture or RegexNodeKind.Concatenate) 2357case RegexNodeKind.Concatenate: 2559case RegexNodeKind.Concatenate: 2598Debug.Assert(node.Kind is not RegexNodeKind.Concatenate, "The existing logic assumes that the node itself isn't a concatenation."); 2617case RegexNodeKind.Concatenate: 2701case RegexNodeKind.Concatenate: 2830case RegexNodeKind.Concatenate: 2907Debug.Assert(Kind == RegexNodeKind.Concatenate, $"Expected Concatenate, got {Kind}"); 3008Debug.Assert(Kind == RegexNodeKind.Concatenate, $"Expected Concatenate, got {Kind}");
System\Text\RegularExpressions\RegexParser.cs (3)
521_concatenation = new RegexNode(RegexNodeKind.Concatenate, _options); 2051_concatenation = new RegexNode(RegexNodeKind.Concatenate, _options); 2068_concatenation = new RegexNode(RegexNodeKind.Concatenate, _options);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (9)
212case RegexNodeKind.Concatenate: 363case RegexNodeKind.Concatenate: 497case RegexNodeKind.Concatenate: 696case RegexNodeKind.Concatenate: 1050case RegexNodeKind.Concatenate: 1142if (node.Kind != RegexNodeKind.Concatenate) 1224while ((nextChild.Kind is RegexNodeKind.Atomic or RegexNodeKind.Capture or RegexNodeKind.Concatenate) || 1309case RegexNodeKind.Concatenate: 1373case RegexNodeKind.Concatenate:
System\Text\RegularExpressions\RegexReplacement.cs (1)
36Debug.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>