]> Cypherpunks repositories - gostls13.git/commit
- don't add "..." anonymous field to structs/interfaces if entries are stripped
authorRobert Griesemer <gri@golang.org>
Thu, 17 Sep 2009 16:12:14 +0000 (09:12 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 17 Sep 2009 16:12:14 +0000 (09:12 -0700)
commit1401151ab2c4abf47e61391972731c3bf38564fe
tree5fd5961dc984f7d9bae1468624542083f719fda3
parent75f72e7b2eb4e008c8c4eee36e248d850a5bff57
- don't add "..." anonymous field to structs/interfaces if entries are stripped
- don't print any optional semicolons after declarations inside functions
- indicate non-exported fields/methods in exported types with a comment
  so that the "exported source" is legal Go code
- more tests

R=rsc
DELTA=300  (227 added, 25 deleted, 48 changed)
OCL=34697
CL=34730
src/pkg/go/ast/ast.go
src/pkg/go/ast/filter.go
src/pkg/go/parser/parser.go
src/pkg/go/printer/printer.go
src/pkg/go/printer/testdata/comments.go
src/pkg/go/printer/testdata/comments.golden
src/pkg/go/printer/testdata/comments.x
src/pkg/go/printer/testdata/declarations.go
src/pkg/go/printer/testdata/declarations.golden