]> Cypherpunks repositories - gostls13.git/commit
go/printer: revert "do not treat comments inside a ast.Decl as godoc"
authorDmitri Shuralyov <dmitshur@golang.org>
Tue, 10 Sep 2024 17:51:53 +0000 (17:51 +0000)
committerChristian Höppner <hoeppi@google.com>
Wed, 11 Sep 2024 06:30:02 +0000 (06:30 +0000)
commitad6ee21bbf3ef5bec6f29046a9eab096f3202d5c
tree0219b29007c191616781a483942c0547e7c871ac
parent90391c2e8ad8da167aed53bad5857008a410d0c1
go/printer: revert "do not treat comments inside a ast.Decl as godoc"

This reverts commit CL 609077.

Reason for revert: it turned out to also introduce a change to the
formatting as described in issue #69382, which wasn't intended.

For #69382.

Change-Id: Id8f36e5503e63e7586c8afe7c7d3dc25fd56ed94
Reviewed-on: https://go-review.googlesource.com/c/go/+/612137
Reviewed-by: Christian Höppner <hoeppi@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/go/printer/nodes.go
src/go/printer/printer.go
src/go/printer/printer_test.go