1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:54:44 -07:00
go/refactor/eg
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/refactor/eg: Support promoted fields and methods. 2014-08-25 16:26:54 -04:00
eg_test.go go.tools/refactor/eg: Support promoted fields and methods. 2014-08-25 16:26:54 -04:00
eg.go cmd/eg: add -beforeedit flag, which specifies a command to run before editing a file. 2014-08-26 15:52:40 -04:00
match.go go.tools/go/types: LookupFieldOrMethod checks method set 2014-08-28 13:03:13 -07:00
rewrite.go go.tools: fix various typos 2014-05-02 14:38:08 -07:00