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

TreeOps: structure the details of defns or calls #1710

Merged
merged 4 commits into from Feb 22, 2020

Conversation

kitbellew
Copy link
Collaborator

@kitbellew kitbellew commented Feb 15, 2020

Prepare for a number of fixes which require a better understanding of a definition.

Also, we can vastly simplify the RewriteTrailingCommas logic immediately, and will be able to improve the FormatOps.getApplyArgs logic later, allowing us to tuck implicit in multi-arg calls or apply trailing commas to calls with a given arity.

No changes to tests or scala-repos.

@kitbellew
Copy link
Collaborator Author

@olafurpg @tanishiking @poslegm PTAL.

Current implementation "pretends" traits and classes have no type params
and return the number of contructor arguments.
We are about to start using some functionality currently in FormatOps.
We can vastly simplify the RewriteTrailingCommas logic now, and will be
able to improve the FormatOps.getApplyArgs logic later.
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.

None yet

2 participants