Skip to content

attach locations to AST with attachSourcePosSource #5

Description

@coord-e

We currently use getSourcePos to obtain current source location during parsing and annotate AST with it, but as the documentation says, getSourcePos is slow to use frequently. Using getOffset to annotate with offsets first and convert them to SourcePos later with attachSourcePosSource would be faster.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceSomething related to performancerefactoringImprovements of internals

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions