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

FormatOps: consider infix case body as top level #3018

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

kitbellew
Copy link
Collaborator

If the case body contains more than one statement, with infix being the last one, then infix is considered to be part of a top-level Block.

Hence, we need to treat the standalone infix the same, for consistency.

If the case body contains more than one statement, with infix being the
last one, then infix is considered to be part of a top-level Block.

Hence, we need to treat the standalone infix the same, for consistency.
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kitbellew kitbellew merged commit 1cceff8 into scalameta:master Dec 30, 2021
@kitbellew kitbellew deleted the 3018 branch December 30, 2021 13:57
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