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: improve handling of parens in functions #3413

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

kitbellew
Copy link
Collaborator

@kitbellew kitbellew commented Dec 18, 2022

Since parens surrounding function parameters are actually part of the entire function tree, let's fix two problems:

  • for parens around function parameters, fix the LHS depth computation to consider only the parameter trees, not the entire function
  • for parens around the entire function, don't force one-arg-per-line logic since it is only intended for the parameters

Helps with #3417.

Since parens surrounding function parameters are actually part of the
entire function tree, let's fix two problems:

- for parens around function parameters, fix the LHS depth computation
  to consider only the parameter trees, not the entire function
- for parens around the entire function, don't force one-arg-per-line
  logic since it is only intended for the parameters
@kitbellew kitbellew requested a review from tgodzik December 18, 2022 07:40
@kitbellew kitbellew merged commit ebb88d8 into scalameta:master Dec 19, 2022
@kitbellew kitbellew deleted the 3413 branch December 19, 2022 13:48
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