20 references to Singleton
System.Text.RegularExpressions (20)
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (2)
232if (!isLazy && lower == 0 && upper == int.MaxValue && node._kind == SymbolicRegexNodeKind.Singleton) 323case SymbolicRegexNodeKind.Singleton:
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (3)
208if (left._kind is SymbolicRegexNodeKind.CaptureEnd or SymbolicRegexNodeKind.BoundaryAnchor or SymbolicRegexNodeKind.Singleton) 211if (left._kind is SymbolicRegexNodeKind.Singleton) 218if (left._lower <= 0 || left._left!.Kind is not SymbolicRegexNodeKind.Singleton)
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (15)
80Debug.Assert(kind != SymbolicRegexNodeKind.Singleton || set is not null); 81TSet setOrStartSet = kind == SymbolicRegexNodeKind.Singleton ? set! : ComputeStartSet(builder, kind, left, right); 340if (_left._kind == SymbolicRegexNodeKind.Singleton) 353if (_kind == SymbolicRegexNodeKind.Singleton) 379Create(builder, SymbolicRegexNodeKind.Singleton, null, null, -1, -1, builder._solver.Empty, default); 382Create(builder, SymbolicRegexNodeKind.Singleton, null, null, -1, -1, builder._solver.Full, default); 407Create(builder, SymbolicRegexNodeKind.Singleton, null, null, -1, -1, set, default); 906case SymbolicRegexNodeKind.Singleton: 1265case SymbolicRegexNodeKind.Singleton: 1668case SymbolicRegexNodeKind.Singleton: 1772case SymbolicRegexNodeKind.Singleton: 1853case SymbolicRegexNodeKind.Singleton: 1970case SymbolicRegexNodeKind.Singleton: 2012Debug.Assert(kind != SymbolicRegexNodeKind.Singleton); 2282case SymbolicRegexNodeKind.Singleton: