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

Issue 110880043: code review 110880043: go.tools/go/types: expose operand modes (Closed)

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

Description

go.tools/go/types: provide TypeAndValue predicates

Patch Set 1 #

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

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

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

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

Total comments: 23

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

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

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

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

Total comments: 16

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

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

Patch Set 12 : diff -r 0f9867c7ea4e https://code.google.com/p/go.tools #

Patch Set 13 : diff -r 0f9867c7ea4e https://code.google.com/p/go.tools #

Total comments: 12

Patch Set 14 : diff -r d12241e54367 https://code.google.com/p/go.tools #

Patch Set 15 : diff -r d12241e54367 https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -27 lines) Patch
M go/types/api.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +73 lines, -11 lines 0 comments Download
M go/types/api_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +112 lines, -0 lines 0 comments Download
M go/types/check.go View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +20 lines, -11 lines 0 comments Download
M go/types/expr.go View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M go/types/operand.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M go/types/typexpr.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14
gri
Hello adonovan@google.com, pcc@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, 10 months ago (2014-07-07 23:03:41 UTC) #1
adonovan
Ship it! https://codereview.appspot.com/110880043/diff/80001/go/types/api.go File go/types/api.go (right): https://codereview.appspot.com/110880043/diff/80001/go/types/api.go#newcode126 go/types/api.go:126: type OperandMode int Mode? or ExprMode? (since ...
9 years, 10 months ago (2014-07-08 07:44:19 UTC) #2
adonovan
https://codereview.appspot.com/110880043/diff/80001/go/types/api.go File go/types/api.go (right): https://codereview.appspot.com/110880043/diff/80001/go/types/api.go#newcode133 go/types/api.go:133: BuiltIn = OperandMode(builtin) // operand is a built-in function ...
9 years, 10 months ago (2014-07-08 10:51:04 UTC) #3
gri
PTAL https://codereview.appspot.com/110880043/diff/80001/go/types/api.go File go/types/api.go (right): https://codereview.appspot.com/110880043/diff/80001/go/types/api.go#newcode126 go/types/api.go:126: type OperandMode int On 2014/07/08 07:44:18, adonovan wrote: ...
9 years, 10 months ago (2014-07-08 22:29:17 UTC) #4
adonovan
https://codereview.appspot.com/110880043/diff/80001/go/types/api.go File go/types/api.go (right): https://codereview.appspot.com/110880043/diff/80001/go/types/api.go#newcode133 go/types/api.go:133: BuiltIn = OperandMode(builtin) // operand is a built-in function ...
9 years, 10 months ago (2014-07-08 22:54:41 UTC) #5
gri
PTAL
9 years, 10 months ago (2014-07-09 00:22:27 UTC) #6
adonovan
Nice, I prefer this way. https://codereview.appspot.com/110880043/diff/160001/go/types/api.go File go/types/api.go (right): https://codereview.appspot.com/110880043/diff/160001/go/types/api.go#newcode130 go/types/api.go:130: // expressions, their values. ...
9 years, 10 months ago (2014-07-09 06:47:40 UTC) #7
adonovan
https://codereview.appspot.com/110880043/diff/160001/go/types/api.go File go/types/api.go (right): https://codereview.appspot.com/110880043/diff/160001/go/types/api.go#newcode227 go/types/api.go:227: // IsValue reports whether the corresponding expression is a ...
9 years, 10 months ago (2014-07-09 09:45:04 UTC) #8
gri
PTAL Everything addressed. Added API tests. Note that Types actually contains identifiers (that are not ...
9 years, 10 months ago (2014-07-09 23:21:05 UTC) #9
adonovan
> Note that Types actually contains identifiers (that are not in a declaration) as > ...
9 years, 10 months ago (2014-07-10 09:52:47 UTC) #10
gri
PTAL https://codereview.appspot.com/110880043/diff/240001/go/types/api.go File go/types/api.go (right): https://codereview.appspot.com/110880043/diff/240001/go/types/api.go#newcode212 go/types/api.go:212: // IsVoid reports wether the corresponding expression On ...
9 years, 10 months ago (2014-07-10 17:15:25 UTC) #11
adonovan
LGTM https://codereview.appspot.com/110880043/diff/240001/go/types/api_test.go File go/types/api_test.go (right): https://codereview.appspot.com/110880043/diff/240001/go/types/api_test.go#newcode293 go/types/api_test.go:293: {`package n0; func f() { f() }`, `f()`, ...
9 years, 10 months ago (2014-07-10 23:40:26 UTC) #12
gri
FYI. https://codereview.appspot.com/110880043/diff/240001/go/types/api_test.go File go/types/api_test.go (right): https://codereview.appspot.com/110880043/diff/240001/go/types/api_test.go#newcode293 go/types/api_test.go:293: {`package n0; func f() { f() }`, `f()`, ...
9 years, 10 months ago (2014-07-10 23:57:25 UTC) #13
gri
9 years, 10 months ago (2014-07-10 23:59:53 UTC) #14
*** Submitted as
https://code.google.com/p/go/source/detail?r=1094193fa120&repo=tools ***

go.tools/go/types: provide TypeAndValue predicates

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

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