• Robert Griesemer's avatar
    go/doc: revert API change (per former discussion) and cleanup · d571c5ca
    Robert Griesemer authored
    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
    d571c5ca
Name
Last commit
Last update
..
articles Loading commit data...
codelab/wiki Loading commit data...
codewalk Loading commit data...
devel Loading commit data...
gopher Loading commit data...
play Loading commit data...
progs Loading commit data...
talks Loading commit data...
ExpressivenessOfGo.pdf Loading commit data...
Makefile Loading commit data...
all.css Loading commit data...
button_background.png Loading commit data...
code.html Loading commit data...
codereview_with_mq.html Loading commit data...
community.html Loading commit data...
contrib.html Loading commit data...
contribute.html Loading commit data...
debugging_with_gdb.html Loading commit data...
docs.html Loading commit data...
effective_go.html Loading commit data...
effective_go.tmpl Loading commit data...
frontpage.css Loading commit data...
gccgo_contribute.html Loading commit data...
gccgo_install.html Loading commit data...
go-logo-black.png Loading commit data...
go-logo-blue.png Loading commit data...
go-logo-white.png Loading commit data...
go1.html Loading commit data...
go1.tmpl Loading commit data...
go_faq.html Loading commit data...
go_for_cpp_programmers.html Loading commit data...
go_mem.html Loading commit data...
go_spec.html Loading commit data...
go_tutorial.html Loading commit data...
go_tutorial.tmpl Loading commit data...
godocs.js Loading commit data...
ie.css Loading commit data...
install.html Loading commit data...
logo-153x55.png Loading commit data...
logo.png Loading commit data...
makehtml Loading commit data...
play_overlay.png Loading commit data...
playground.html Loading commit data...
popups.js Loading commit data...
root.html Loading commit data...
sieve.gif Loading commit data...
tmpltohtml.go Loading commit data...
video-001.png Loading commit data...
video-002.png Loading commit data...
video-003.png Loading commit data...
video-004.png Loading commit data...
video-005.jpg Loading commit data...