1 write to _upper
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (1)
68
_upper
= upper;
31 references to _upper
System.Text.RegularExpressions (31)
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (2)
242
if (node.Kind == SymbolicRegexNodeKind.Loop && node._lower == 0 && node.
_upper
== 1 && lower == 0 && upper == 1)
329
return builder.CreateLoop(Transform(node._left, builder, setTransformer), node.IsLazy, node._lower, node.
_upper
);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (2)
223
node = left._lower == left.
_upper
?
226
_builder.CreateLoop(left._left, left.IsLazy, 0, left.
_upper
- left._lower),
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (27)
363
public bool IsStar => _lower == 0 &&
_upper
== int.MaxValue;
374
public bool IsPlus => _lower == 1 &&
_upper
== int.MaxValue;
414
if (lower == 0 && upper == 1 && body._kind == SymbolicRegexNodeKind.Loop && body._lower == 0 && body.
_upper
== 1)
671
if (left._left.IsNullable && rl._kind == SymbolicRegexNodeKind.Loop && rl._lower == 0 && rl.
_upper
== 1 && rl.IsLazy)
685
if (ll._kind == SymbolicRegexNodeKind.Loop && ll._lower == 0 && ll.
_upper
== 1 && ll.IsLazy)
912
if (_lower ==
_upper
)
1177
CreateConcat(builder, CreateLoop(builder, loop._left, 1, loop.
_upper
, loop.IsLazy), tail),
1180
else if (loop.
_upper
== int.MaxValue)
1218
int newupper =
_upper
== int.MaxValue ? int.MaxValue :
_upper
- 1;
1318
Debug.Assert(
_upper
> 0);
1403
return builder.CreateLoop(_left.StripEffects(builder), IsLazy, _lower,
_upper
);
1483
case SymbolicRegexNodeKind.Loop when _lower == 0 &&
_upper
== 1:
1551
if (_lower != 0 || (
_upper
!= 0 && !IsLazy && _left.IsNullableFor(context)))
1679
else if (_lower == 0 &&
_upper
== 1)
1707
else if (_lower == 0 &&
_upper
== 0)
1716
if (
_upper
== int.MaxValue)
1720
else if (_lower !=
_upper
)
1723
sb.Append(
_upper
);
1915
return builder.CreateLoop(_left.Reverse(builder), IsLazy, _lower,
_upper
);
1988
return (
_upper
< int.MaxValue) && (
_upper
> upperBoundLowestValue);
2121
CreateLoop(builder, body, _lower,
_upper
, IsLazy);
2293
Debug.Assert(_lower >= 0 &&
_upper
> 0 &&
_upper
>= _lower);
2294
if (
_upper
== int.MaxValue)
2314
return Times(
_upper
, _left.CountSingletons());