34 references to Empty
System.Text.RegularExpressions (34)
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) 1187case RegexNodeKind.Empty when !seenEmpty: 1191case RegexNodeKind.Empty: 1329node.Kind = RegexNodeKind.Empty; 1338node.Kind = RegexNodeKind.Empty; 1510return new RegexNode(RegexNodeKind.Empty, Options); 1606else if (at.Kind == RegexNodeKind.Empty) 1989if (Child(0).Kind == RegexNodeKind.Empty) 1991Kind = Kind == RegexNodeKind.PositiveLookaround ? RegexNodeKind.Empty : RegexNodeKind.Nothing; 2010AddChild(new RegexNode(RegexNodeKind.Empty, Options)); 2028AddChild(new RegexNode(RegexNodeKind.Empty, Options)); 2333case RegexNodeKind.Empty: 2360goto case RegexNodeKind.Empty; 2471case RegexNodeKind.Empty: 2497goto case RegexNodeKind.Empty; 2570else if (child.Kind is RegexNodeKind.Empty) 2686return 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 (7)
100case RegexNodeKind.Empty: 469case RegexNodeKind.Empty: 666case RegexNodeKind.Empty: 1002case RegexNodeKind.Empty: 1269case RegexNodeKind.Empty: 1366case RegexNodeKind.Empty or RegexNodeKind.NegativeLookaround: 1393if (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>