1 write to FindOptimizations
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexTree.cs (1)
80FindOptimizations = new RegexFindOptimizations(root, options);
15 references to FindOptimizations
System.Text.RegularExpressions (15)
System\Text\RegularExpressions\RegexCompiler.cs (12)
411int minRequiredLength = _regexTree.FindOptimizations.MinRequiredLength; 462switch (_regexTree.FindOptimizations.FindMode) 490Debug.Fail($"Unexpected mode: {_regexTree.FindOptimizations.FindMode}"); 507switch (_regexTree.FindOptimizations.FindMode) 623int extraNewlineBump = _regexTree.FindOptimizations.FindMode == FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0; 628Ldc(_regexTree.FindOptimizations.MinRequiredLength + extraNewlineBump); 634Ldc(_regexTree.FindOptimizations.MinRequiredLength + extraNewlineBump); 647switch (_regexTree.FindOptimizations.LeadingAnchor) 726switch (_regexTree.FindOptimizations.TrailingAnchor) 728case RegexNodeKind.End or RegexNodeKind.EndZ when _regexTree.FindOptimizations.MaxPossibleLength is int maxLength: 731int extraNewlineBump = _regexTree.FindOptimizations.FindMode == FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0; 756RegexFindOptimizations opts = _regexTree.FindOptimizations;
System\Text\RegularExpressions\RegexWriter.cs (1)
122return new RegexInterpreterCode(_tree.FindOptimizations, _tree.Options, emitted, strings, _trackCount);
System\Text\RegularExpressions\Symbolic\SymbolicRegexRunnerFactory.cs (2)
43SymbolicRegexMatcher<BitVector>.Create(regexTree.CaptureCount, regexTree.FindOptimizations, bddBuilder, rootNode, new BitVectorSolver(minterms), matchTimeout) : 44SymbolicRegexMatcher<ulong>.Create(regexTree.CaptureCount, regexTree.FindOptimizations, bddBuilder, rootNode, new UInt64Solver(minterms), matchTimeout);