-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Preserve return attribute #839
Conversation
@nojaf is there anything else needed for this to get merged ? |
src/Fantomas/CodePrinter.fs
Outdated
@@ -489,7 +489,7 @@ and genExprSepEqPrependType astContext (pat:SynPat) (e: SynExpr) (valInfo:SynVal | |||
let genMetadataAttributes ctx = |
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.
You could leave the ctx parameter all together and return partially applied from both clauses.
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.
@kontomondo could you change this to:
let genMetadataAttributes =
match valInfo with
| Some(SynValInfo(_, SynArgInfo(attributes, _, _))) -> genOnelinerAttributes astContext attributes
| None -> sepNone
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.
absolutely, done
Many thanks @kontomondo! Sorry for the delay. |
@nojaf Thank you, and no worries, that was blazingly fast by open source standards :) |
addresses #800