System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (21)
518public bool IsStar => _lower == 0 && _upper == int.MaxValue;
529public bool IsPlus => _lower == 1 && _upper == int.MaxValue;
570if (lower == 0 && upper == 1 && bodyContext._kind == SymbolicRegexNodeKind.Loop && bodyContext._lower == 0 && bodyContext._upper == 1)
834if (left._left.IsNullable && rl._kind == SymbolicRegexNodeKind.Loop && rl._lower == 0 && rl._upper == 1 && rl.IsLazy)
848if (ll._kind == SymbolicRegexNodeKind.Loop && ll._lower == 0 && ll._upper == 1 && ll.IsLazy)
1081if (_lower == _upper)
1347CreateConcat(builder, CreateLoop(builder, loop._left, 1, loop._upper, loop.IsLazy), tail),
1350else if (loop._upper == int.MaxValue)
1388int newupper = _upper == int.MaxValue ? int.MaxValue : _upper - 1;
1598result = builder.CreateLoop(_left.StripEffects(builder), IsLazy, _lower, _upper);
1682case SymbolicRegexNodeKind.Loop when _lower == 0 && _upper == 1:
2134return builder.CreateLoop(_left.Reverse(builder), IsLazy, _lower, _upper);
2207return (_upper < int.MaxValue) && (_upper > upperBoundLowestValue);
2340CreateLoop(builder, body, _lower, _upper, IsLazy);
2476Debug.Assert(current._lower >= 0 && current._upper > 0 && current._upper >= current._lower);
2479if (current._upper == int.MaxValue)
2510loopMultiplier = current._upper;
2559if (current._upper == int.MaxValue)