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

Router: check formatInfix using the infix tree #3163

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

kitbellew
Copy link
Collaborator

To upgrade to scalameta v4.5.1 (which deprecates Type.{And,Or} trees in favour of regular Type.ApplyInfix trees), we will need to add special handling of Type.ApplyInfix trees.

For that, checking newlines.afterInfix will need to be done selectively, based on the tree, hence we need to pass the tree parameter around.

@kitbellew kitbellew requested a review from tgodzik March 22, 2022 18:41
To upgrade to scalameta v4.5.1 (which deprecates Type.{And,Or} trees in
favour of regular Type.ApplyInfix trees), we will need to add special
handling of Type.ApplyInfix trees.

For that, checking newlines.afterInfix will need to be done selectively,
based on the tree, hence we need to pass the tree parameter around.
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 a513b5a into scalameta:master Mar 23, 2022
@kitbellew kitbellew deleted the sm451 branch March 23, 2022 16:27
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