]> Cypherpunks repositories - gostls13.git/commit
go/doc: steps towards collecting methods of embedded types
authorRobert Griesemer <gri@golang.org>
Wed, 21 Dec 2011 16:45:00 +0000 (08:45 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 21 Dec 2011 16:45:00 +0000 (08:45 -0800)
commit97853b46a08e984048e65f1d9c359bb48b8f22e4
treeabc309a738bba85c19a63bced1ed237821f37fe2
parent721e19c24c84ef130528901ed8abedfcb49259b1
go/doc: steps towards collecting methods of embedded types

No visible external changes yet. The current approach is
a stop-gap approach: For methods of anonymous fields to be
seen, the anonymous field's types must be exported.

Missing: computing the actual MethodDocs and displaying them.

(Depending on the operation mode of godoc, the input to go/doc
is a pre-filtered AST with all non-exported nodes removed. Non-
exported anonymous fields are not even seen by go/doc in this
case, and it is impossible to collect associated (even exported)
methods. A correct fix will require some more significant re-
engineering; AST filtering will have to happen later, possibly
inside go/doc.)

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5500055
src/pkg/go/doc/doc.go