]> Cypherpunks repositories - gostls13.git/commit
go/parser: use non-adjusted position while parsing CommentGroups
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Thu, 1 May 2025 12:20:45 +0000 (12:20 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 5 May 2025 15:29:32 +0000 (08:29 -0700)
commit93e3d5dc5f2af317c874fd61cbd354409ea9fd33
treeb3c49e945993b3aa3ab0d1b9179d8dc851b084e8
parent6953ef86cd72a835d398319c4da560c8b78ba28e
go/parser: use non-adjusted position while parsing CommentGroups

Line directives should not affect the way Comments get grouped
into CommentGroups.

Change-Id: I9aa4b558cb1333b32be692e8720291d0e6961cae
GitHub-Last-Rev: de867b27bff28983716ba9126329d75f456a2b5a
GitHub-Pull-Request: golang/go#69133
Reviewed-on: https://go-review.googlesource.com/c/go/+/609515
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/go/parser/parser.go
src/go/parser/parser_test.go