]> Cypherpunks repositories - gostls13.git/commit
go/ast: generalize ast.FilterFile
authorRobert Griesemer <gri@golang.org>
Tue, 23 Aug 2011 01:51:51 +0000 (18:51 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 23 Aug 2011 01:51:51 +0000 (18:51 -0700)
commitd8594f3d3c819d03280749584c5e92a5c4429e56
tree9374650e03c1c08b56ef374926e89e2197779652
parentd883f29309e867e97d30df96df246c3d41bf1f92
go/ast: generalize ast.FilterFile

ast.FilterFile(src, ast.IsExported) has the same
effect as ast.FileExports(src) with this change.

1st step towards removing FileExports - it is
just a special case of FilterFile with this CL.

Added corresponding test.

R=r
CC=golang-dev
https://golang.org/cl/4938041
src/pkg/go/ast/filter.go
src/pkg/go/parser/filter_test.go [new file with mode: 0644]