33 references to Capture
System.Text.RegularExpressions.Generator (33)
RegexGenerator.Emitter.cs (6)
1484Debug.Assert(node.Kind == RegexNodeKind.Capture, "Every generated tree should begin with a capture node"); 2545Debug.Assert(node.Kind is RegexNodeKind.Capture, $"Unexpected type: {node.Kind}"); 2940case RegexNodeKind.Capture: 5469RegexNodeKind.Capture when node.M == -1 && node.N != -1 => $"Non-capturing balancing group. Uncaptures the {DescribeCapture(node.N, rm)}.", 5470RegexNodeKind.Capture when node.N != -1 => $"Balancing group. Captures the {DescribeCapture(node.M, rm)} and uncaptures the {DescribeCapture(node.N, rm)}.", 5471RegexNodeKind.Capture when node.N == -1 => $"{DescribeCapture(node.M, rm)}.",
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (12)
203Debug.Assert(Kind == RegexNodeKind.Capture, "Every generated tree should begin with a capture node"); 262case RegexNodeKind.Capture: 332Debug.Assert(rootNode.Kind == RegexNodeKind.Capture); 450case RegexNodeKind.Capture: 1415case RegexNodeKind.Capture: 1852if (node.Kind is RegexNodeKind.Capture or RegexNodeKind.Concatenate) 1945while (node.Kind == RegexNodeKind.Capture) 2077case RegexNodeKind.Capture: 2217case RegexNodeKind.Capture: 2327case RegexNodeKind.Capture: 2466case RegexNodeKind.Capture: 2904case RegexNodeKind.Capture:
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (3)
277StartGroup(new RegexNode(RegexNodeKind.Capture, (_options & ~RegexOptions.IgnoreCase), 0, -1)); 763return new RegexNode(RegexNodeKind.Capture, _options, _autocap++, -1); 937return new RegexNode(RegexNodeKind.Capture, _options, capnum, uncapnum);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (10)
85case RegexNodeKind.Capture: 455case RegexNodeKind.Capture: 492case RegexNodeKind.Capture: 683case RegexNodeKind.Capture: 1021case RegexNodeKind.Capture: 1114while (node.Kind is RegexNodeKind.Atomic or RegexNodeKind.Capture) 1131while (firstChild.Kind is RegexNodeKind.Atomic or RegexNodeKind.Capture) 1200while ((nextChild.Kind is RegexNodeKind.Atomic or RegexNodeKind.Capture or RegexNodeKind.Concatenate) || 1274case RegexNodeKind.Capture: 1339case RegexNodeKind.Capture:
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexTreeAnalyzer.cs (2)
70case RegexNodeKind.Capture: 101RegexNodeKind.Capture => true,