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