]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: use commentMap to collect error comments
authorRobert Griesemer <gri@golang.org>
Thu, 8 Dec 2022 04:40:37 +0000 (20:40 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 17 Jan 2023 19:53:51 +0000 (19:53 +0000)
commit390eee7ab18a091662fd7580b08b4aa3515b5951
treeee067b99446823376a162b47bb65b1f75dd36b7f
parent526b8956c23dee7be386720247e143f87e5ec2d2
go/types: use commentMap to collect error comments

Adjust the testFiles function to use the new commentMap
function. This makes it possible for testFiles to match
the types2.TestFiles logic more closely.

For #51006.

Change-Id: I6c5ecbeb86d095404ec04ba4452fb90d404b8280
Reviewed-on: https://go-review.googlesource.com/c/go/+/456137
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/check_test.go
src/go/types/check_test.go