]> Cypherpunks repositories - gostls13.git/commit
go/types: add commentMap and test
authorRobert Griesemer <gri@golang.org>
Thu, 8 Dec 2022 16:29:14 +0000 (08:29 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 17 Jan 2023 19:53:49 +0000 (19:53 +0000)
commit526b8956c23dee7be386720247e143f87e5ec2d2
treeaf94733884483065c7fbf02279b7b5b8a09a6e8f
parent1e0051658345a13ca9be9eeccdce2dabb016c627
go/types: add commentMap and test

This adds the (adjusted) syntax.CommentMap function and corresponding
test to the types_test package so that we can use it for collecting
ERROR comments in the next CL.

For #51006.

Change-Id: I63ce96e7394c28c02d5a292250586cc49c1f6e19
Reviewed-on: https://go-review.googlesource.com/c/go/+/456125
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
src/go/types/commentMap_test.go [new file with mode: 0644]