33 references to Empty
System.Text.RegularExpressions (33)
System\Text\RegularExpressions\RegexNode.cs (23)
177
Kind = RegexNodeKind.
Empty
;
235
case RegexNodeKind.
Empty
:
563
0 => new RegexNode(Kind == RegexNodeKind.Alternate ? RegexNodeKind.Nothing : RegexNodeKind.
Empty
, Options),
620
case RegexNodeKind.
Empty
:
652
if (branches[0].Kind == RegexNodeKind.
Empty
)
654
return new RegexNode(RegexNodeKind.
Empty
, child.Options);
663
if (branches[i].Kind == RegexNodeKind.
Empty
)
1183
case RegexNodeKind.
Empty
when !seenEmpty:
1187
case RegexNodeKind.
Empty
:
1325
node.Kind = RegexNodeKind.
Empty
;
1334
node.Kind = RegexNodeKind.
Empty
;
1506
return new RegexNode(RegexNodeKind.
Empty
, Options);
1602
else if (at.Kind == RegexNodeKind.
Empty
)
1985
if (Child(0).Kind == RegexNodeKind.
Empty
)
1987
Kind = Kind == RegexNodeKind.PositiveLookaround ? RegexNodeKind.
Empty
: RegexNodeKind.Nothing;
2006
AddChild(new RegexNode(RegexNodeKind.
Empty
, Options));
2024
AddChild(new RegexNode(RegexNodeKind.
Empty
, Options));
2329
case RegexNodeKind.
Empty
:
2356
goto case RegexNodeKind.
Empty
;
2467
case RegexNodeKind.
Empty
:
2493
goto case RegexNodeKind.
Empty
;
2566
else if (child.Kind is RegexNodeKind.
Empty
)
2682
return new RegexNode(RegexNodeKind.
Empty
, Options);
System\Text\RegularExpressions\RegexNodeKind.cs (1)
122
/// by that child, and if a concatenation has no children, it can be replaced by <see cref="
Empty
"/>.
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (6)
100
case RegexNodeKind.
Empty
:
469
case RegexNodeKind.
Empty
:
666
case RegexNodeKind.
Empty
:
1002
case RegexNodeKind.
Empty
:
1281
if (node.Child(i).Kind is not (RegexNodeKind.
Empty
or RegexNodeKind.PositiveLookaround or RegexNodeKind.NegativeLookaround))
1292
if (node.Child(i).Kind is not (RegexNodeKind.
Empty
or RegexNodeKind.PositiveLookaround or RegexNodeKind.NegativeLookaround))
System\Text\RegularExpressions\RegexWriter.cs (1)
217
case RegexNodeKind.
Empty
:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
132
case RegexNodeKind.
Empty
:
System\Text\RegularExpressions\Symbolic\SymbolicRegexKind.cs (1)
9
/// <summary>An empty node that matches a zero-width input (e.g. <see cref="RegexNodeKind.
Empty
"/>).</summary>