32 references to Capture
System.Text.RegularExpressions (32)
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: 1411case RegexNodeKind.Capture: 1848if (node.Kind is RegexNodeKind.Capture or RegexNodeKind.Concatenate) 1941while (node.Kind == RegexNodeKind.Capture) 2073case RegexNodeKind.Capture: 2213case RegexNodeKind.Capture: 2323case RegexNodeKind.Capture: 2462case RegexNodeKind.Capture: 2900case RegexNodeKind.Capture:
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);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (9)
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) || 1265case RegexNodeKind.Capture:
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (2)
70case RegexNodeKind.Capture: 101RegexNodeKind.Capture => true,
System\Text\RegularExpressions\RegexWriter.cs (2)
343case RegexNodeKind.Capture | BeforeChild: 347case RegexNodeKind.Capture | AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (4)
88case RegexNodeKind.Capture when node.N == -1: // N == -1 because balancing groups (which have N >= 0) aren't supported 183RegexNodeKind.Capture => SR.ExpressionDescription_BalancingGroup, 267Debug.Assert(node.Kind == RegexNodeKind.Capture && node.N == -1); 285Debug.Assert(rootResult.Count == 1 || root.Kind == RegexNodeKind.Concatenate || root.Kind == RegexNodeKind.Capture);