]> Cypherpunks repositories - gostls13.git/commit
gofmt: fine-tune stripping of parentheses
authorRobert Griesemer <gri@golang.org>
Tue, 27 Apr 2010 20:27:48 +0000 (13:27 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 27 Apr 2010 20:27:48 +0000 (13:27 -0700)
commit72f9b2ebee979c60b7bb2cafc300be47e362b241
tree7fea8db035be5fcd55f2c1395a11cde260a1c2ca
parentd971f717031a8a95ab905ca79f0aee2215c25993
gofmt: fine-tune stripping of parentheses
       (composite literals in control clauses only need
       parentheses if the literals start with a type name)

R=rsc
CC=golang-dev
https://golang.org/cl/962045
src/pkg/go/printer/nodes.go
src/pkg/go/printer/testdata/statements.golden
src/pkg/go/printer/testdata/statements.input