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

Fix: Formatting for parameter default values #3946

Merged
merged 2 commits into from
May 3, 2023

Conversation

MikaelMayer
Copy link
Member

This PR fixes #3944. I first recreated the issue with a test, and then fixed it.
It turned out, formals had a field "DefaultValue" which was never considered as a child, so its tokens were considered to be part of the declaration, which messed up indentation.
The fix was to ensure Formals now take the default value also in their range, and also in their children.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

Copy link
Member

@robin-aws robin-aws left a comment

Choose a reason for hiding this comment

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

🚀

@robin-aws robin-aws enabled auto-merge (squash) May 3, 2023 23:21
@robin-aws robin-aws merged commit 56e3587 into master May 3, 2023
@robin-aws robin-aws deleted the fix-3944-formatter-arguments-default-value branch May 3, 2023 23:56
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.

Formatter bug
2 participants