]> Cypherpunks repositories - gostls13.git/commit
go/doc: revert API change (per former discussion) and cleanup
authorRobert Griesemer <gri@golang.org>
Thu, 26 Jan 2012 00:48:06 +0000 (16:48 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 26 Jan 2012 00:48:06 +0000 (16:48 -0800)
commitd571c5ca78a58489a1fd223dd6749a650668ccdc
tree605ca89aa437835ad2c98053b7b303a58b76d6d9
parent1e09031f7f9293ba032c88abb55b373d341f01bf
go/doc: revert API change (per former discussion) and cleanup

Separating Method from Func made the code only more complicated
without adding much to the useability/readability of the API.
Reverted to where it was, but leaving the new method-specific
fields Orig and Level.

Former clients (godoc) of doc.Method only used the Func fields;
and because Func was embedded, no changes are needed with respect
to the removal of Method.

Changed type of Func.Recv from ast.Expr to string. This was a
long-standing TODO. Also implemented Func.Orig field (another TODO).

No further go/doc API changes are expected for Go 1.

R=rsc, r, r
CC=golang-dev
https://golang.org/cl/5577043
doc/go1.html
doc/go1.tmpl
lib/godoc/package.html
src/pkg/go/doc/doc.go
src/pkg/go/doc/filter.go
src/pkg/go/doc/reader.go