1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:04:42 -07:00
go/cmd/vet
Robert Griesemer 5dca7d8bd1 go.tools/go/types: LookupFieldOrMethod checks method set
LookupFieldOrMethod now also decides whether a found
method is actually in the method set. Simplifies call
sites. Added corresponding API tests.

TODO (separate CL): Decide what the correct value for
the indirect result should be (as required for code
generation). For now, the result value for indirect
is unchanged from before if a field/method is found.

Fixes golang/go#8584.

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/132260043
2014-08-28 13:03:13 -07:00
..
testdata go.tools/cmd/vet: validate calls to t.Log and t.Logf 2014-08-25 12:31:49 -07:00
whitelist cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
asmdecl.go vet: LEA* opcodes don't need to have matching length source and destination. 2014-07-21 21:15:39 -07:00
assign.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
atomic.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
bool.go go.tools/cmd/vet: detect stupid boolean conditions 2014-07-02 10:39:57 -07:00
buildtag.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
composite.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
copylock.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
deadcode.go go.tools/cmd/vet: prevent panic on goto without label 2014-06-20 11:08:45 -07:00
doc.go go.tools/cmd/vet: validate calls to t.Log and t.Logf 2014-08-25 12:31:49 -07:00
main.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
method.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
nilfunc.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
print.go go.tools/cmd/vet: validate calls to t.Log and t.Logf 2014-08-25 12:31:49 -07:00
rangeloop.go go.tools/cmd/vet: change message for range check 2014-08-24 17:26:18 -07:00
shadow.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
structtag.go cmd/vet: check for use of json/xml struct tags with unexported fields 2014-06-13 18:44:31 -07:00
types.go go.tools/go/types: LookupFieldOrMethod checks method set 2014-08-28 13:03:13 -07:00
unsafeptr.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
vet_test.go go.tools/cmd/vet: disable TestVet on Plan 9 2014-02-20 21:43:24 +01:00