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

Better formatting for conditionals. #396

Merged
merged 3 commits into from
Aug 9, 2021
Merged

Conversation

belav
Copy link
Owner

@belav belav commented Aug 8, 2021

closes #345

This was mostly about formatting for conditionals, but ended up involving changing the logic for how assignments and variables get formatted.

_ => Doc.Group(Doc.Indent(Doc.Line), Doc.Indent(Node.Print(node)))
or MemberAccessExpressionSyntax
or ConditionalExpressionSyntax { Condition: BinaryExpressionSyntax
or ParenthesizedExpressionSyntax }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this have its own issue? It shouldn't be aligned with the rest, since it's nested in a sub object

Copy link
Owner Author

Choose a reason for hiding this comment

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

I added it on to #154

@shocklateboy92 shocklateboy92 merged commit 9aae837 into master Aug 9, 2021
@shocklateboy92 shocklateboy92 deleted the conditional-indentation branch August 9, 2021 08:02
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.

Conditional breaking without indentation
2 participants