• Daniel Martí's avatar
    cmd/vet: rewrite method check to use go/types · 62b850f1
    Daniel Martí authored
    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.
    
    Finally, update whitelist/all.txt, since the reported errors now include
    qualified types.
    
    Change-Id: I760a1b3b1f60e4a478c9dc43bd7f584a8459593e
    Reviewed-on: https://go-review.googlesource.com/c/148919
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    62b850f1
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...