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