1 write to _kind
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (1)
64_kind = kind;
75 references to _kind
System.Text.RegularExpressions (75)
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (3)
232if (!isLazy && lower == 0 && upper == int.MaxValue && node._kind == SymbolicRegexNodeKind.Singleton) 291switch (node._kind) 360Debug.Fail($"{nameof(Transform)}:{node._kind}");
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (5)
196if (node._kind is not SymbolicRegexNodeKind.Concat) 198if (node._kind is SymbolicRegexNodeKind.CaptureStart) 208if (left._kind is SymbolicRegexNodeKind.CaptureEnd or SymbolicRegexNodeKind.BoundaryAnchor or SymbolicRegexNodeKind.Singleton) 211if (left._kind is SymbolicRegexNodeKind.Singleton) 216else if (left._kind is SymbolicRegexNodeKind.Loop)
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (67)
121switch (node._kind) 153Debug.Assert(node._kind is SymbolicRegexNodeKind.BeginningAnchor or 201while (node._kind == listKind) 204if (node._left._kind == listKind) 255switch (_kind) 323Debug.Assert(_kind == SymbolicRegexNodeKind.EndAnchorZReverse); 340if (_left._kind == SymbolicRegexNodeKind.Singleton) 353if (_kind == SymbolicRegexNodeKind.Singleton) 366public bool IsEpsilon => _kind == SymbolicRegexNodeKind.Epsilon; 369internal SymbolicRegexNodeKind Kind => _kind; 414if (lower == 0 && upper == 1 && body._kind == SymbolicRegexNodeKind.Loop && body._lower == 0 && body._upper == 1) 430if (node._kind == SymbolicRegexNodeKind.Effect) 462Debug.Assert(right._kind is not SymbolicRegexNodeKind.Effect); 463if (left._kind == SymbolicRegexNodeKind.Effect) 497SymbolicRegexNode<TSet> head = right._kind == SymbolicRegexNodeKind.Alternate ? right._left! : right; 498SymbolicRegexNode<TSet> tail = right._kind == SymbolicRegexNodeKind.Alternate ? right._right! : builder._nothing; 514if (!deduplicated && left._kind != SymbolicRegexNodeKind.Alternate) 519while (current._kind == SymbolicRegexNodeKind.Alternate) 523Debug.Assert(current._left._kind != SymbolicRegexNodeKind.Alternate); 537if (!deduplicated || left._kind == SymbolicRegexNodeKind.Alternate) 583Debug.Assert(left._kind != SymbolicRegexNodeKind.Alternate); 651if (left._kind == SymbolicRegexNodeKind.Effect) 659if (right._kind == SymbolicRegexNodeKind.Effect) 667if (left._kind == SymbolicRegexNodeKind.Concat && right._kind == SymbolicRegexNodeKind.Concat) 671if (left._left.IsNullable && rl._kind == SymbolicRegexNodeKind.Loop && rl._lower == 0 && rl._upper == 1 && rl.IsLazy) 681if (left._kind == SymbolicRegexNodeKind.Concat && right._kind == SymbolicRegexNodeKind.Concat) 685if (ll._kind == SymbolicRegexNodeKind.Loop && ll._lower == 0 && ll._upper == 1 && ll.IsLazy) 694if (left._kind == SymbolicRegexNodeKind.Concat) 713while (prefix._kind == SymbolicRegexNodeKind.Concat) 716if (node._kind != SymbolicRegexNodeKind.Concat) 728if (node._kind != SymbolicRegexNodeKind.Concat) 750while (current._kind == SymbolicRegexNodeKind.Effect) 789if (left._kind == SymbolicRegexNodeKind.Effect) 812if (right._kind == SymbolicRegexNodeKind.Effect) 821if (right._kind == SymbolicRegexNodeKind.Concat) 842while (suffix._kind == SymbolicRegexNodeKind.Concat) 890switch (_kind) 987switch (_kind) 1066if (_kind == SymbolicRegexNodeKind.DisableBacktrackingSimulation) 1100switch (_kind) 1115prunedNode = _left._kind switch 1214Debug.Assert(_kind == SymbolicRegexNodeKind.Loop && _left is not null); 1263switch (_kind) 1345Debug.Fail($"{nameof(CreateDerivative)}:{_kind}"); 1376switch (_kind) 1406Debug.Fail($"{nameof(StripEffects)}:{_kind}"); 1448switch (_kind) 1516Debug.Fail($"{nameof(StripAndMapEffects)}:{_kind}"); 1539switch (_kind) 1605switch (_kind) 1764Debug.Fail($"{nameof(ToStringHelper)}:{_kind}"); 1770switch (node._kind) 1836switch (_kind) 1872while (conc._kind == SymbolicRegexNodeKind.Concat) 1892Debug.Fail($"{nameof(CollectSets)}:{_kind}"); 1911switch (_kind) 1922while (rest._kind == SymbolicRegexNodeKind.Concat) 1985switch (_kind) 2090switch (_kind) 2185switch (_kind) 2220switch (_kind) 2225Debug.Assert(_left._kind is not SymbolicRegexNodeKind.DisableBacktrackingSimulation); 2235while (current._kind is SymbolicRegexNodeKind.Alternate) 2238Debug.Assert(current._left._kind is not SymbolicRegexNodeKind.Alternate); 2280switch (_kind)