Skip to content

Keep a comment after a property accessor - #3538

Merged
nojaf merged 1 commit into
fsprojects:mainfrom
nojaf:fix-3527
Oct 14, 2026
Merged

nojaf merged 1 commit into
fsprojects:mainfrom
nojaf:fix-3527

Conversation

@nojaf

@nojaf nojaf commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

A comment after the body of a getter or setter in a property with with get ... and set ... was dropped. Trivia assignment attaches it to the accessor's PropertyGetSetBindingNode, but the printer never wrote that node's trivia.

Fixes #3527

A comment after the body of a getter or setter in a property with
`with get ... and set ...` was dropped. Trivia assignment attaches it
to the accessor's PropertyGetSetBindingNode, but the printer never
wrote that node's trivia.

Fixes fsprojects#3527
@nojaf
nojaf merged commit 1af520b into fsprojects:main Oct 14, 2026
15 checks passed
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.

Comment after a property accessor is lost

1 participant