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

Issue 2817041: code review 2817041: go/printer: do not remove parens around composite liter... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 8 months ago by gri
Modified:
14 years, 8 months ago
Reviewers:
peterGo
CC:
rsc, golang-dev
Visibility:
Public.

Description

go/printer: do not remove parens around composite literals starting with a type name in control clauses (even when they are nested inside an expression). Fixes issue 1243.

Patch Set 1 #

Patch Set 2 : code review 2817041: go/printer: do not remove parens around composite liter... #

Total comments: 1

Patch Set 3 : code review 2817041: go/printer: do not remove parens around composite liter... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -16 lines) Patch
M src/pkg/go/printer/nodes.go View 1 2 5 chunks +33 lines, -16 lines 0 comments Download
M src/pkg/go/printer/testdata/statements.golden View 1 1 chunk +30 lines, -0 lines 0 comments Download
M src/pkg/go/printer/testdata/statements.input View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 7
gri
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 8 months ago (2010-11-01 21:37:54 UTC) #1
rsc1
LGTM http://codereview.appspot.com/2817041/diff/3001/src/pkg/go/printer/nodes.go File src/pkg/go/printer/nodes.go (right): http://codereview.appspot.com/2817041/diff/3001/src/pkg/go/printer/nodes.go#newcode801 src/pkg/go/printer/nodes.go:801: // TODO(gri) make this more general and incorporate ...
14 years, 8 months ago (2010-11-01 22:01:23 UTC) #2
gri
On Mon, Nov 1, 2010 at 3:01 PM, <rsc@google.com> wrote: > LGTM > > > ...
14 years, 8 months ago (2010-11-01 22:07:47 UTC) #3
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=dc31bff57d34 *** go/printer: do not remove parens around composite literals starting with ...
14 years, 8 months ago (2010-11-01 22:08:05 UTC) #4
peterGo
> Fixes issue 1243. I still have issue 1243: hg id 77bee7a9b622 tip. 1243.go:7: syntax ...
14 years, 8 months ago (2010-11-01 23:29:52 UTC) #5
gri
I cannot reproduce this anymore. Also, the tests in go/printer check this case and the ...
14 years, 8 months ago (2010-11-01 23:42:40 UTC) #6
peterGo
14 years, 8 months ago (2010-11-02 00:56:37 UTC) #7
> Please verify that you are running the correct and re-built (i.e.,
> re-linked) gofmt after updating.

I downloaded a new copy of the repo; problem solved.
Sign in to reply to this message.

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