Skip to content

Offset not applied for locations in parseCpp #76

Description

@linuswagner

When calling parseCpp with a location l that has positional information (the part after the URI), the function correctly only parses this part of the code. However, all positions in the source locations in the AST are 0-based and not offset by the offset of l.

This does not make sense, because the AST still refers back to the original file and now points to an incorrect position

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions