Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite RegexPrefixAnalyzer.FindFirstCharClass (#67732)
Every other analysis we use is on a recursion plan; this one is the last holdover that's still based on iteration maintaining its own custom stack of objects, making it difficult to comprehend the logic. As it turns out, it also has some bugs causing it to miss some cases, in particular where the pattern starts with an anchor followed by a negated set. This PR rewrites it to be simpler / recursive like the rest of our analyses.
- Loading branch information