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

Set the correct node pos for unary nodes #464

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

felipeochoa
Copy link
Contributor

Currently, prefix unary nodes have their pos attribute set to the start of their argument rather than the start of the operator. This causes issues with js2-node-at-point and similar. This PR goes through all these node creation sites and sets the correct attribute. I guess it's technically a breaking change since it adds a non-optional argument to js2-make-unary, though that strikes me as an internal function.

@dgutov
Copy link
Collaborator

dgutov commented Nov 1, 2017

that strikes me as an internal function

Me too.

Thanks!

@dgutov dgutov merged commit 32c0491 into mooz:master Nov 1, 2017
@felipeochoa felipeochoa deleted the unary-node-pos branch November 1, 2017 22:49
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

Successfully merging this pull request may close these issues.

2 participants