Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset not applied for locations in parseCpp #76

Open
linuswagner opened this issue Dec 29, 2023 · 1 comment
Open

Offset not applied for locations in parseCpp #76

linuswagner opened this issue Dec 29, 2023 · 1 comment

Comments

@linuswagner
Copy link
Collaborator

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

@jurgenvinju
Copy link
Member

Nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants