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

Issue 142020043: code review 142020043: go/printer: don't reduce nesting depth twice if paramet... (Closed)

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

Description

go/printer: don't reduce nesting depth twice if parentheses are present around an expr No impact on formatting on our repos. Fixes issue 8021.

Patch Set 1 #

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

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

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

Messages

Total messages: 7
gri
Hello adonovan, dvyukov (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
9 years, 7 months ago (2014-09-11 23:47:37 UTC) #1
dvyukov
Why am I here? s/parameters/parens/ in the description
9 years, 7 months ago (2014-09-12 00:09:56 UTC) #2
gri
CL desc fixed. You (dvyukov) are on this because this is a bug you reported ...
9 years, 7 months ago (2014-09-12 17:08:03 UTC) #3
adonovan
On 2014/09/12 17:08:03, gri wrote: > CL desc fixed. > > You (dvyukov) are on ...
9 years, 7 months ago (2014-09-12 18:14:18 UTC) #4
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=b4e2a93cc930 *** go/printer: don't reduce nesting depth twice if parentheses are present ...
9 years, 7 months ago (2014-09-12 18:18:16 UTC) #5
gobot
This CL appears to have broken the windows-amd64-perf builder. See http://build.golang.org/log/1c1d08fb8a8f07d180ca9b1b920165feda078c3c
9 years, 7 months ago (2014-09-12 18:20:39 UTC) #6
dvyukov
9 years, 7 months ago (2014-09-12 18:31:25 UTC) #7
On Fri, Sep 12, 2014 at 10:08 AM, Robert Griesemer <gri@golang.org> wrote:
> CL desc fixed.
>
> You (dvyukov) are on this because this is a bug you reported some time back
> and I had a temp. patch for you at that time. This is the same patch w/ test
> cases, ready to be submitted for good.

ah, OK, missed "Fixes issue" part
good, we can revive gofmt testing under gosmith
Sign in to reply to this message.

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