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

Prefer breaking before when clause, instead of inside #384

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

pmccloghrylaing
Copy link
Contributor

Closes #382

Token.PrintWithSuffix(node.WhenKeyword, " "),
Node.Print(node.Condition)
var groupId = Guid.NewGuid().ToString();
return Doc.GroupWithId(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any particular reason you're making this a GroupWithId instead of just a Group?
It doesn't look like you're doing anything with the id.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah - I had thought I needed to use IndentIfBreak. I'll change it to Group.

@shocklateboy92 shocklateboy92 merged commit 14d69d6 into belav:master Jul 29, 2021
@shocklateboy92
Copy link
Collaborator

Thanks! 🫂😊

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.

Line breaks in "when" clause in SwitchExpression
2 participants