2 writes to LeadingAnchor
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexFindOptimizations.cs (2)
26
LeadingAnchor
= RegexPrefixAnalyzer.FindLeadingAnchor(root);
30
LeadingAnchor
= RegexNodeKind.Unknown;
6 references to LeadingAnchor
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\RegexCompiler.cs (1)
647
switch (_regexTree.FindOptimizations.
LeadingAnchor
)
System\Text\RegularExpressions\RegexFindOptimizations.cs (4)
27
if (_rightToLeft &&
LeadingAnchor
== RegexNodeKind.Bol)
32
if (
LeadingAnchor
is RegexNodeKind.Beginning or RegexNodeKind.Start or RegexNodeKind.EndZ or RegexNodeKind.End)
34
FindMode = (
LeadingAnchor
, _rightToLeft) switch
250
LeadingAnchor
== RegexNodeKind.Bol; // there's a leading BOL anchor we can otherwise search for
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (1)
211
findOptimizations.
LeadingAnchor
is not RegexNodeKind.Beginning)