]> Cypherpunks repositories - gostls13.git/commit
- rewrite declaration printing to take full use of discardable tabwriter columns
authorRobert Griesemer <gri@golang.org>
Thu, 8 Oct 2009 15:48:33 +0000 (08:48 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 8 Oct 2009 15:48:33 +0000 (08:48 -0700)
commit7ecfb021f3d39833ecb39cf875611cd9808589c8
tree84c068cad4de9cf9f26a32d0bf944e059118c8e5
parent093af4e512d0f2f358aa83b2125a8fb1563a5889
- rewrite declaration printing to take full use of discardable tabwriter columns
- honor line breaks in multi-line expressions
- do not add extra indentation to multi-line string lists
- don't put blanks around simple function calls and conversions
- do not modify `` strings
- added extra test cases

R=rsc
DELTA=398  (246 added, 51 deleted, 101 changed)
OCL=35453
CL=35465
src/pkg/go/printer/printer.go
src/pkg/go/printer/testdata/declarations.go
src/pkg/go/printer/testdata/declarations.golden
src/pkg/go/printer/testdata/expressions.go
src/pkg/go/printer/testdata/expressions.golden
src/pkg/go/printer/testdata/linebreaks.golden