32 references to Capture
System.Text.RegularExpressions (32)
System\Text\RegularExpressions\RegexNode.cs (12)
203
Debug.Assert(Kind == RegexNodeKind.
Capture
, "Every generated tree should begin with a capture node");
262
case RegexNodeKind.
Capture
:
332
Debug.Assert(rootNode.Kind == RegexNodeKind.
Capture
);
450
case RegexNodeKind.
Capture
:
1411
case RegexNodeKind.
Capture
:
1848
if (node.Kind is RegexNodeKind.
Capture
or RegexNodeKind.Concatenate)
1941
while (node.Kind == RegexNodeKind.
Capture
)
2073
case RegexNodeKind.
Capture
:
2213
case RegexNodeKind.
Capture
:
2323
case RegexNodeKind.
Capture
:
2462
case RegexNodeKind.
Capture
:
2900
case RegexNodeKind.
Capture
:
System\Text\RegularExpressions\RegexParser.cs (3)
277
StartGroup(new RegexNode(RegexNodeKind.
Capture
, (_options & ~RegexOptions.IgnoreCase), 0, -1));
763
return new RegexNode(RegexNodeKind.
Capture
, _options, _autocap++, -1);
937
return new RegexNode(RegexNodeKind.
Capture
, _options, capnum, uncapnum);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (9)
85
case RegexNodeKind.
Capture
:
455
case RegexNodeKind.
Capture
:
492
case RegexNodeKind.
Capture
:
683
case RegexNodeKind.
Capture
:
1021
case RegexNodeKind.
Capture
:
1114
while (node.Kind is RegexNodeKind.Atomic or RegexNodeKind.
Capture
)
1131
while (firstChild.Kind is RegexNodeKind.Atomic or RegexNodeKind.
Capture
)
1200
while ((nextChild.Kind is RegexNodeKind.Atomic or RegexNodeKind.
Capture
or RegexNodeKind.Concatenate) ||
1265
case RegexNodeKind.
Capture
:
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (2)
70
case RegexNodeKind.
Capture
:
101
RegexNodeKind.
Capture
=> true,
System\Text\RegularExpressions\RegexWriter.cs (2)
343
case RegexNodeKind.
Capture
| BeforeChild:
347
case RegexNodeKind.
Capture
| AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (4)
88
case RegexNodeKind.
Capture
when node.N == -1: // N == -1 because balancing groups (which have N >= 0) aren't supported
183
RegexNodeKind.
Capture
=> SR.ExpressionDescription_BalancingGroup,
267
Debug.Assert(node.Kind == RegexNodeKind.
Capture
&& node.N == -1);
285
Debug.Assert(rootResult.Count == 1 || root.Kind == RegexNodeKind.Concatenate || root.Kind == RegexNodeKind.
Capture
);