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

RewriteTrailingCommas/RedundantParens: collaborate #3760

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

kitbellew
Copy link
Collaborator

The former now checks if opening paren was removed, while the latter ensures, for a closing paren, that any trailing comma was removed, too.

Also, handle trailing-comma case when determining token owners in TreeOps (to avoid idempotency problems, it should behave the same as if the comma hadn't been there).

Follow-on to #3743.

@kitbellew kitbellew requested a review from tgodzik January 9, 2024 15:25
The former now checks if opening paren was removed, while the latter
ensures, for a closing paren, that any trailing comma was removed, too.
@kitbellew kitbellew merged commit 7b9b2ba into scalameta:master Jan 9, 2024
9 checks passed
@kitbellew kitbellew deleted the 3743_4 branch January 9, 2024 18:37
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