tools/go/analysis/passes/stdmethods
Alan Donovan 99072bc9d7 go/analysis/passes/stdmethods: rewrite check to use go/types
Now that vet can rely on go/types, there's no reason to do extra work to
avoid using it. The rewrite lets us get rid of the field list flattening
code, as well as the slight verbosity that comes with go/printer.

While at it, make the testdata/method.go expected errors be more
specific, to make sure that we're not breaking the warnings that are
printed.

This change was originally made to cmd/vet in
https://go-review.googlesource.com/c/148919

Change-Id: I123e64d369e521199712c9807583c53d428534ac
Reviewed-on: https://go-review.googlesource.com/c/149418
Reviewed-by: Michael Matloob <matloob@golang.org>
2018-11-14 14:52:09 +00:00
..
testdata/src/a go/analysis/passes/stdmethods: rewrite check to use go/types 2018-11-14 14:52:09 +00:00
stdmethods.go go/analysis/passes/stdmethods: rewrite check to use go/types 2018-11-14 14:52:09 +00:00
stdmethods_test.go go/analysis/passes: add doc and copyright comments 2018-10-16 20:28:15 +00:00