Skip to content

Fix WithScope for destructured post arguments #396

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

Conversation

vinistock
Copy link
Contributor

This was caught by one of YARP's fixtures. When you have

def foo(a = 1, (b, c))
end

Then posts will include a MLHSParen, which we need to account for in WithScope and also in the typing annotations.

@vinistock vinistock requested a review from kddnewton July 12, 2023 19:49
@vinistock vinistock self-assigned this Jul 12, 2023
@vinistock vinistock force-pushed the vs/fix_with_scope_for_destructured_post_arguments branch from d1d1790 to 0d565b0 Compare July 12, 2023 19:54
@vinistock vinistock force-pushed the vs/fix_with_scope_for_destructured_post_arguments branch from 0d565b0 to fcc974a Compare July 14, 2023 18:49
@vinistock vinistock requested a review from kddnewton July 14, 2023 18:49
@kddnewton kddnewton merged commit 7222353 into ruby-syntax-tree:main Jul 14, 2023
@vinistock vinistock deleted the vs/fix_with_scope_for_destructured_post_arguments branch July 14, 2023 18:54
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