]> Cypherpunks repositories - gostls13.git/commit
- ast.FilterExports: strips all non-exported nodes from an AST
authorRobert Griesemer <gri@golang.org>
Mon, 6 Jul 2009 17:37:33 +0000 (10:37 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 6 Jul 2009 17:37:33 +0000 (10:37 -0700)
commitdeb954772d08d27b7d261aa7214be98ccd58e5cc
tree48a258fee1d014e8a586ca205459a12a9505d1fa
parentcd4aab62e3f11e7872796b7f6c8f8700d7719a8e
- ast.FilterExports: strips all non-exported nodes from an AST
- use FilterExports instead of the various predicates in printer.go and doc.go
  which simplifies a lot of code and makes it easier to deal with complex cases

R=rsc
DELTA=445  (197 added, 190 deleted, 58 changed)
OCL=31110
CL=31196
src/cmd/godoc/godoc.go
src/cmd/gofmt/gofmt.go
src/pkg/go/ast/Makefile
src/pkg/go/ast/filter.go [new file with mode: 0644]
src/pkg/go/doc/doc.go
src/pkg/go/printer/printer.go