Skip to content

Speedup/cleanup of scope_resolution #219

@matter123

Description

@matter123

Per #218 (comment), the patterns made by generateScopeResolutionFinder are slow. Additionally, the pattern is used in many places. If the patterns can be made atomic, it should speed up parsing time for most of the grammar.

Additionally, the difference between the main scope_resolution pattern and the inner generated pattern is not documented. There also appears to be no particular reason why some patterns use the outer pattern, and some use the inner pattern.

The main difference between the outer scope_resolution and the inner scope_resolution is that the inner scope_resolution pattern must match at least one A<B>:: while the outer pattern is allowed to match none.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ContributorIssues that users probably don't care aboutHard🔍 investigatingMore information is being gathered

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions