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

RedundantParens: detect enclosed trees properly #3207

Merged
merged 2 commits into from
May 12, 2022

Conversation

kitbellew
Copy link
Collaborator

This now allows us to use a single approach which is no longer overly sensitive to whether the scalameta parser includes the parentheses as part of the enclosed or enclosing tree. Required for #3200.

The updated scalameta parser now correctly determines it's not valid.

Also add a few extra tests.
This now allows us to use a single approach which is no longer overly
sensitive to whether the scalameta parser includes the parentheses as
part of the enclosed or enclosing tree.
@kitbellew kitbellew merged commit 62fbc76 into scalameta:master May 12, 2022
@kitbellew kitbellew deleted the 3207 branch May 12, 2022 15:32
@armanbilge
Copy link

@kitbellew
Copy link
Collaborator Author

@xuwei-k @armanbilge thanks for the examples

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.

4 participants