33 references to Empty
System.Text.RegularExpressions (33)
System\Text\RegularExpressions\RegexNode.cs (23)
177Kind = RegexNodeKind.Empty; 235case RegexNodeKind.Empty: 5630 => new RegexNode(Kind == RegexNodeKind.Alternate ? RegexNodeKind.Nothing : RegexNodeKind.Empty, Options), 620case RegexNodeKind.Empty: 652if (branches[0].Kind == RegexNodeKind.Empty) 654return new RegexNode(RegexNodeKind.Empty, child.Options); 663if (branches[i].Kind == RegexNodeKind.Empty) 1183case RegexNodeKind.Empty when !seenEmpty: 1187case RegexNodeKind.Empty: 1325node.Kind = RegexNodeKind.Empty; 1334node.Kind = RegexNodeKind.Empty; 1506return new RegexNode(RegexNodeKind.Empty, Options); 1602else if (at.Kind == RegexNodeKind.Empty) 1985if (Child(0).Kind == RegexNodeKind.Empty) 1987Kind = Kind == RegexNodeKind.PositiveLookaround ? RegexNodeKind.Empty : RegexNodeKind.Nothing; 2006AddChild(new RegexNode(RegexNodeKind.Empty, Options)); 2024AddChild(new RegexNode(RegexNodeKind.Empty, Options)); 2329case RegexNodeKind.Empty: 2356goto case RegexNodeKind.Empty; 2467case RegexNodeKind.Empty: 2493goto case RegexNodeKind.Empty; 2566else if (child.Kind is RegexNodeKind.Empty) 2682return 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)
100case RegexNodeKind.Empty: 469case RegexNodeKind.Empty: 666case RegexNodeKind.Empty: 1002case RegexNodeKind.Empty: 1281if (node.Child(i).Kind is not (RegexNodeKind.Empty or RegexNodeKind.PositiveLookaround or RegexNodeKind.NegativeLookaround)) 1292if (node.Child(i).Kind is not (RegexNodeKind.Empty or RegexNodeKind.PositiveLookaround or RegexNodeKind.NegativeLookaround))
System\Text\RegularExpressions\RegexWriter.cs (1)
217case RegexNodeKind.Empty:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
132case 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>