Skip to content

Fix legacy formatter behaviour for bodies with no comments or decls#741

Merged
doriable merged 2 commits into
mainfrom
fix-empty-body-format
Jul 6, 2026
Merged

Fix legacy formatter behaviour for bodies with no comments or decls#741
doriable merged 2 commits into
mainfrom
fix-empty-body-format

Conversation

@doriable

@doriable doriable commented Jul 6, 2026

Copy link
Copy Markdown
Member

There was a bug with the legacy formatting options,
where empty bodies, without comments, etc., were still
being broken. This fixes that and adds a test case.

@doriable doriable requested a review from emcfarlane July 6, 2026 19:23
Comment thread experimental/ast/printer/decl.go
@doriable doriable merged commit 1b7f7ec into main Jul 6, 2026
10 checks passed
@doriable doriable deleted the fix-empty-body-format branch July 6, 2026 19:50
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.

2 participants