Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8945)

Issue 132260043: code review 132260043: go.tools/go/types: LookupFieldOrMethod checks method set (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by gri
Modified:
9 years, 8 months ago
Reviewers:
adonovan
CC:
adonovan, golang-codereviews
Visibility:
Public.

Description

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 issue 8584.

Patch Set 1 #

Patch Set 2 : diff -r 918b8a7e7b1e97a664074c42688ee666b4fd906d https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 918b8a7e7b1e97a664074c42688ee666b4fd906d https://code.google.com/p/go.tools #

Patch Set 4 : diff -r 918b8a7e7b1e97a664074c42688ee666b4fd906d https://code.google.com/p/go.tools #

Patch Set 5 : diff -r 918b8a7e7b1e97a664074c42688ee666b4fd906d https://code.google.com/p/go.tools #

Patch Set 6 : diff -r 918b8a7e7b1e97a664074c42688ee666b4fd906d https://code.google.com/p/go.tools #

Total comments: 8

Patch Set 7 : diff -r 918b8a7e7b1e97a664074c42688ee666b4fd906d https://code.google.com/p/go.tools #

Patch Set 8 : diff -r 77809a9cbbe2e512003fc945e03682192f2cb6f6 https://code.google.com/p/go.tools #

Patch Set 9 : diff -r 77809a9cbbe2e512003fc945e03682192f2cb6f6 https://code.google.com/p/go.tools #

Patch Set 10 : diff -r 77809a9cbbe2e512003fc945e03682192f2cb6f6 https://code.google.com/p/go.tools #

Patch Set 11 : diff -r 77809a9cbbe2e512003fc945e03682192f2cb6f6 https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -64 lines) Patch
M cmd/vet/types.go View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M go/ssa/interp/external.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M go/types/api_test.go View 1 2 3 4 5 6 7 8 2 chunks +76 lines, -2 lines 0 comments Download
M go/types/builtins.go View 1 1 chunk +1 line, -1 line 0 comments Download
M go/types/call.go View 1 2 3 3 chunks +8 lines, -21 lines 0 comments Download
M go/types/lookup.go View 1 2 3 4 5 9 chunks +37 lines, -37 lines 0 comments Download
M go/types/methodset.go View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M refactor/eg/match.go View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
9 years, 8 months ago (2014-08-27 22:21:11 UTC) #1
adonovan
LGTM w.r.t. the status quo. https://codereview.appspot.com/132260043/diff/100001/go/types/api_test.go File go/types/api_test.go (right): https://codereview.appspot.com/132260043/diff/100001/go/types/api_test.go#newcode821 go/types/api_test.go:821: {"var x T; type ...
9 years, 8 months ago (2014-08-28 19:22:47 UTC) #2
gri
https://codereview.appspot.com/132260043/diff/100001/go/types/api_test.go File go/types/api_test.go (right): https://codereview.appspot.com/132260043/diff/100001/go/types/api_test.go#newcode821 go/types/api_test.go:821: {"var x T; type T struct{}; func (*T) f() ...
9 years, 8 months ago (2014-08-28 19:49:53 UTC) #3
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 8 months ago (2014-08-28 19:50:06 UTC) #4
gri
9 years, 8 months ago (2014-08-28 20:03:16 UTC) #5
*** Submitted as
https://code.google.com/p/go/source/detail?r=e964465ea698&repo=tools ***

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 issue 8584.

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://codereview.appspot.com/132260043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b