2 writes to LeadingAnchor
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (2)
55
LeadingAnchor
= RegexPrefixAnalyzer.FindLeadingAnchor(root);
59
LeadingAnchor
= RegexNodeKind.Unknown;
6 references to LeadingAnchor
System.Text.RegularExpressions.Generator (6)
RegexGenerator.Emitter.cs (2)
687
rm.Tree.FindOptimizations.
LeadingAnchor
!= RegexNodeKind.Unknown ||
941
switch (regexTree.FindOptimizations.
LeadingAnchor
)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (4)
56
if (rightToLeft &&
LeadingAnchor
== RegexNodeKind.Bol)
61
if (
LeadingAnchor
is RegexNodeKind.Beginning or RegexNodeKind.Start or RegexNodeKind.EndZ or RegexNodeKind.End)
63
FindMode = (
LeadingAnchor
, rightToLeft) switch
280
LeadingAnchor
== RegexNodeKind.Bol; // there's a leading BOL anchor we can otherwise search for