28 references to Capture
System.Text.RegularExpressions.Generator (28)
RegexGenerator.Emitter.cs (1)
1484Debug.Assert(node.Kind == RegexNodeKind.Capture, "Every generated tree should begin with a capture node");
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,