21 references to ExpressionConditional
System.Text.RegularExpressions (21)
System\Text\RegularExpressions\RegexNode.cs (11)
274case RegexNodeKind.ExpressionConditional: 453if ((existingChild.Kind is RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional or RegexNodeKind.Loop or RegexNodeKind.Lazyloop) && 468case RegexNodeKind.ExpressionConditional: 476if (node.Kind != RegexNodeKind.ExpressionConditional) // ReduceExpressionConditional will have already applied ending backtracking removal 546RegexNodeKind.ExpressionConditional => ReduceExpressionConditional(), 1904case RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional: 1915for (int b = node.Kind == RegexNodeKind.ExpressionConditional ? 1 : 0; b < alternateBranches; b++) 2015Debug.Assert(Kind == RegexNodeKind.ExpressionConditional); 2100case RegexNodeKind.ExpressionConditional when childCount == 3: // condition, yes, and no branch 2306case RegexNodeKind.ExpressionConditional: 2430case RegexNodeKind.ExpressionConditional:
System\Text\RegularExpressions\RegexParser.cs (5)
978nodeType = RegexNodeKind.ExpressionConditional; 1004if (_group!.Kind != RegexNodeKind.ExpressionConditional) 2052if (_group.Kind == RegexNodeKind.ExpressionConditional && _group.ChildCount() == 0) 2077if (_group!.Kind is RegexNodeKind.ExpressionConditional or RegexNodeKind.BackreferenceConditional) 2092if (_group!.Kind is RegexNodeKind.ExpressionConditional or RegexNodeKind.BackreferenceConditional)
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1079case RegexNodeKind.ExpressionConditional:
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (1)
98RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional => true,
System\Text\RegularExpressions\RegexWriter.cs (2)
278case RegexNodeKind.ExpressionConditional | BeforeChild: 290case RegexNodeKind.ExpressionConditional | AfterChild:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
184RegexNodeKind.ExpressionConditional => SR.ExpressionDescription_IfThenElse,