9 references to ComputeMaxLength
System.Text.RegularExpressions.Generator (9)
RegexGenerator.Emitter.cs (1)
960
regexTree.Root.
ComputeMaxLength
() == regexTree.FindOptimizations.MinRequiredLength)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
84
root.
ComputeMaxLength
() is int maxLength)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (7)
2839
if (Child(0).
ComputeMaxLength
() is int childMaxLength)
2855
if (Child(0).
ComputeMaxLength
() is not int maxLength)
2862
if (Child(i).
ComputeMaxLength
() is not int next)
2878
return Child(i).
ComputeMaxLength
() is int yes && Child(i + 1).
ComputeMaxLength
() is int no ?
2890
if (Child(i).
ComputeMaxLength
() is not int length)
2909
return Child(0).
ComputeMaxLength
();