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

Issue 6994047: code review 6994047: exp/types: resolve composite literal keys (Closed)

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

Description

exp/types: resolve composite literal keys The parser/resolver cannot accurately resolve composite literal keys that are identifiers; it needs type information. Instead, try to resolve them but leave final judgement to the type checker.

Patch Set 1 #

Patch Set 2 : diff -r 6aea29793585 https://code.google.com/p/go #

Patch Set 3 : diff -r 6aea29793585 https://code.google.com/p/go #

Patch Set 4 : diff -r 6aea29793585 https://code.google.com/p/go #

Patch Set 5 : diff -r 6aea29793585 https://code.google.com/p/go #

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

Patch Set 7 : diff -r 6aea29793585 https://code.google.com/p/go #

Patch Set 8 : diff -r 6aea29793585 https://code.google.com/p/go #

Patch Set 9 : diff -r 6aea29793585 https://code.google.com/p/go #

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

Total comments: 2

Patch Set 11 : diff -r 4b61f121966b https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -16 lines) Patch
M src/pkg/exp/types/check.go View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M src/pkg/exp/types/expr.go View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -9 lines 0 comments Download
M src/pkg/exp/types/testdata/expr3.src View 1 2 chunks +18 lines, -0 lines 0 comments Download
M src/pkg/go/parser/parser.go View 1 2 3 3 chunks +35 lines, -7 lines 0 comments Download

Messages

Total messages: 5
gri
Hello adonovan@google.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 7 months ago (2012-12-27 00:21:55 UTC) #1
gri
Hello adonovan@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 7 months ago (2012-12-27 00:51:24 UTC) #2
adonovan
LGTM Thanks for the quick fix. https://codereview.appspot.com/6994047/diff/1003/src/pkg/exp/types/expr.go File src/pkg/exp/types/expr.go (right): https://codereview.appspot.com/6994047/diff/1003/src/pkg/exp/types/expr.go#newcode510 src/pkg/exp/types/expr.go:510: // compositeLitKey resolves ...
12 years, 7 months ago (2012-12-28 17:33:29 UTC) #3
gri
https://codereview.appspot.com/6994047/diff/1003/src/pkg/exp/types/expr.go File src/pkg/exp/types/expr.go (right): https://codereview.appspot.com/6994047/diff/1003/src/pkg/exp/types/expr.go#newcode510 src/pkg/exp/types/expr.go:510: // compositeLitKey resolves unresolved composite literal keys. On 2012/12/28 ...
12 years, 7 months ago (2012-12-28 18:40:19 UTC) #4
gri
12 years, 7 months ago (2012-12-28 18:40:41 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=d7f56af8557e ***

exp/types: resolve composite literal keys

The parser/resolver cannot accurately resolve
composite literal keys that are identifiers;
it needs type information.
Instead, try to resolve them but leave final
judgement to the type checker.

R=adonovan
CC=golang-dev
https://codereview.appspot.com/6994047
Sign in to reply to this message.

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