]> Cypherpunks repositories - gostls13.git/commit
go/ast, go/doc, godoc: consider struct fields and interface methods when filtering...
authorRobert Griesemer <gri@golang.org>
Tue, 10 May 2011 18:09:56 +0000 (11:09 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 10 May 2011 18:09:56 +0000 (11:09 -0700)
commit0389051aac628de7a5a93fb2a7e107bb2daba9b0
tree28f0e20a50a679820614fa266529c780b44cf854
parent69a91663d25df694ec3a85d32b77c37444f1dac6
go/ast, go/doc, godoc: consider struct fields and interface methods when filtering ASTs

So far, only top-level names where considered when trimming ASTs
using a filter function. For instance, "godoc reflect Implements"
didn't show the "Implements" method of the type Interface because
the local method name was not considered (on the other hand, "top-
level" declared methods associated with types were considered).

With this CL, AST filter functions look also at struct fields
and interface methods.

R=rsc, r
CC=golang-dev
https://golang.org/cl/4518050
src/pkg/go/ast/filter.go
src/pkg/go/doc/doc.go