2 writes to LeadingAnchor
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexFindOptimizations.cs (2)
55LeadingAnchor = RegexPrefixAnalyzer.FindLeadingAnchor(root); 59LeadingAnchor = RegexNodeKind.Unknown;
8 references to LeadingAnchor
System.Text.RegularExpressions (8)
System\Text\RegularExpressions\RegexCompiler.cs (1)
647switch (_regexTree.FindOptimizations.LeadingAnchor)
System\Text\RegularExpressions\RegexFindOptimizations.cs (6)
56if (rightToLeft && LeadingAnchor == RegexNodeKind.Bol) 61if (LeadingAnchor is RegexNodeKind.Beginning or RegexNodeKind.Start or RegexNodeKind.EndZ or RegexNodeKind.End) 63FindMode = (LeadingAnchor, rightToLeft) switch 280LeadingAnchor == RegexNodeKind.Bol; // there's a leading BOL anchor we can otherwise search for 409Debug.Assert(LeadingAnchor != RegexNodeKind.Bol, "BOL isn't enabled for RTL"); 535if (LeadingAnchor == RegexNodeKind.Bol)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (1)
211findOptimizations.LeadingAnchor is not RegexNodeKind.Beginning)