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

Preserve return attribute #839

Merged
merged 10 commits into from
May 22, 2020
Merged

Preserve return attribute #839

merged 10 commits into from
May 22, 2020

Conversation

kontomondo
Copy link
Contributor

addresses #800

@kontomondo kontomondo marked this pull request as ready for review May 17, 2020 14:49
@kontomondo
Copy link
Contributor Author

@nojaf is there anything else needed for this to get merged ?

@@ -489,7 +489,7 @@ and genExprSepEqPrependType astContext (pat:SynPat) (e: SynExpr) (valInfo:SynVal
let genMetadataAttributes ctx =
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

absolutely, done

src/Fantomas/CodePrinter.fs Show resolved Hide resolved
@nojaf nojaf merged commit ab0c6c0 into fsprojects:master May 22, 2020
@nojaf
Copy link
Contributor

nojaf commented May 22, 2020

Many thanks @kontomondo! Sorry for the delay.

@kontomondo kontomondo deleted the fix-800 branch May 23, 2020 02:57
@kontomondo
Copy link
Contributor Author

@nojaf Thank you, and no worries, that was blazingly fast by open source standards :)

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.

None yet

2 participants