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

Fix AST location of call name in operator assignment #13456

Merged
merged 2 commits into from May 22, 2023

Conversation

FnControlOption
Copy link
Contributor

In @foo.bar += 1, Call#name_location refers to bar, and OpAssign#name_location refers to +=

In `@foo.bar += 1`, `Call#name_location` refers to `bar`, and
`OpAssign#name_location` refers to `+=`
@straight-shoota straight-shoota added this to the 1.9.0 milestone May 16, 2023
@straight-shoota straight-shoota merged commit 986e03b into crystal-lang:master May 22, 2023
46 checks passed
@FnControlOption FnControlOption deleted the op-assign branch May 23, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants