-
-
Notifications
You must be signed in to change notification settings - Fork 100
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: bugs from #1066 #1078
fix: bugs from #1066 #1078
Conversation
Group id used in ArgumentListLikeSyntax was not unique and the nested lambda overrode the state of the parent lambda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Do you want to merge this as is, and fix the second bug mentioned in #1077 in a separate PR?
Or should I wait for you to push the fix for the second one also into this branch?
@@ -10,14 +10,15 @@ FormattingContext context | |||
) | |||
{ | |||
var docs = new List<Doc> { Token.Print(openParenToken, context) }; | |||
var lambdaId = Guid.NewGuid(); | |||
|
|||
switch (arguments) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to mention this in your original PR, but this all branches of this switch statement just add something to the list.
Wouldn't it look better if you used the switch expression instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expression looks almost the same for me
I will fix the second bug in other PR |
Closes #1077
Well, I've fixed the last bug before PR is merged, so I've decided to add the changes in this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers!
Fix the first and third bugs described in #1077