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