]> Cypherpunks repositories - gostls13.git/commit
go/printer: don't reduce nesting depth twice if parentheses are present around an...
authorRobert Griesemer <gri@golang.org>
Fri, 12 Sep 2014 18:18:12 +0000 (11:18 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 12 Sep 2014 18:18:12 +0000 (11:18 -0700)
commita14c1c986eba6ca6a35bfb9feb833b8eff53c7b1
treec34f05847f702632a6243d149ecc52ed4ae0e296
parentfbd1b5f98f1bbe0c992b7a99719f0ec38a7033bc
go/printer: don't reduce nesting depth twice if parentheses are present around an expr

No impact on formatting on our repos.

Fixes #8021.

LGTM=adonovan
R=adonovan, dvyukov
CC=golang-codereviews
https://golang.org/cl/142020043
src/go/printer/nodes.go
src/go/printer/testdata/expressions.golden
src/go/printer/testdata/expressions.input
src/go/printer/testdata/expressions.raw
src/go/printer/testdata/statements.golden