1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:44:40 -07:00
go/lib
Robert Griesemer d571c5ca78 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
2012-01-25 16:48:06 -08:00
..
codereview codereview: more fixes 2012-01-25 14:46:10 -05:00
godoc go/doc: revert API change (per former discussion) and cleanup 2012-01-25 16:48:06 -08:00