45 references to Concatenate
System.Text.RegularExpressions (45)
System\Text\RegularExpressions\RegexNode.cs (26)
138
Kind == RegexNodeKind.
Concatenate
&&
278
case RegexNodeKind.
Concatenate
:
379
case RegexNodeKind.
Concatenate
:
386
if (node.Parent is { Kind: RegexNodeKind.
Concatenate
} parent)
451
case RegexNodeKind.
Concatenate
:
541
RegexNodeKind.
Concatenate
=> ReduceConcatenation(),
560
Debug.Assert(Kind is RegexNodeKind.Alternate or RegexNodeKind.
Concatenate
);
1090
if (child.Kind != RegexNodeKind.
Concatenate
|| child.ChildCount() < 2)
1156
var newConcat = new RegexNode(RegexNodeKind.
Concatenate
, alternation.Options);
1313
ProcessOneOrMulti(branch.Kind == RegexNodeKind.
Concatenate
? branch.Child(0) : branch, startingSpan);
1358
var newConcat = new RegexNode(RegexNodeKind.
Concatenate
, startingNodeOptions);
1378
RegexNode branch = Kind == RegexNodeKind.
Concatenate
? Child(0) : this;
1410
case RegexNodeKind.
Concatenate
:
1500
Debug.Assert(Kind == RegexNodeKind.
Concatenate
);
1542
Debug.Assert(Kind == RegexNodeKind.
Concatenate
);
1559
if (at.Kind == RegexNodeKind.
Concatenate
&&
1625
Debug.Assert(Kind == RegexNodeKind.
Concatenate
);
1823
if (Kind is not RegexNodeKind.
Concatenate
)
1848
if (node.Kind is RegexNodeKind.Capture or RegexNodeKind.
Concatenate
)
1952
if (node.Kind == RegexNodeKind.
Concatenate
)
2072
case RegexNodeKind.
Concatenate
:
2217
case RegexNodeKind.
Concatenate
:
2310
case RegexNodeKind.
Concatenate
:
2439
case RegexNodeKind.
Concatenate
:
2516
Debug.Assert(Kind == RegexNodeKind.
Concatenate
, $"Expected Concatenate, got {Kind}");
2632
Debug.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)
212
case RegexNodeKind.
Concatenate
:
363
case RegexNodeKind.
Concatenate
:
497
case RegexNodeKind.
Concatenate
:
696
case RegexNodeKind.
Concatenate
:
1040
case RegexNodeKind.
Concatenate
:
1118
if (node.Kind != RegexNodeKind.
Concatenate
)
1200
while ((nextChild.Kind is RegexNodeKind.Atomic or RegexNodeKind.Capture or RegexNodeKind.
Concatenate
) ||
1270
case RegexNodeKind.
Concatenate
:
System\Text\RegularExpressions\RegexReplacement.cs (1)
36
Debug.Assert(concat.Kind == RegexNodeKind.
Concatenate
, $"Expected Concatenate, got {concat.Kind}");
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (1)
105
RegexNodeKind.
Concatenate
=> i == childCount - 1,
System\Text\RegularExpressions\RegexWriter.cs (2)
215
case RegexNodeKind.
Concatenate
| BeforeChild:
216
case RegexNodeKind.
Concatenate
| AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (3)
84
case RegexNodeKind.
Concatenate
:
211
case RegexNodeKind.
Concatenate
:
285
Debug.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>