• Robert Griesemer's avatar
    go/doc, godoc: move export filtering into go/doc · 198936f2
    Robert Griesemer authored
    - exports.go contains a stripped-down (but semantically unchanged)
      version of the code in go/ast/filter.go for export filtering
    - filter.go contains the documentation filtering code found before
      at the end of doc.go; this is simply a code move w/o any semantic
      changes
    - godoc now relies on go/doc for export filtering when creating
      documentation. It still has a separate form of export filtering
      for showing the source code version. This needs to be consolidated
      (perhaps the source form view should just be removed?).
    - Stripping of function bodies (stripFunctionBodies function of
      godoc.go) is now happening in doc.go (line 176).
    - doc.NewPackageDoc has an extra parameter "exportsOnly. If set
      to false, the behavior is as before. This function is only called
      once in our source code; a gofix module is probably not warranted.
    - Deleted doc.NewFileDoc - was never called.
    
    This change is mostly a code move w/ some minimal tweaks. It should
    not cause any changes to the behavior of godoc. It's a prerequisite
    for extracting anonymous embedded fields.
    
    R=golang-dev, r
    CC=golang-dev
    https://golang.org/cl/5502072
    198936f2
Name
Last commit
Last update
..
Makefile Loading commit data...
README.godoc-app Loading commit data...
appinit.go Loading commit data...
codewalk.go Loading commit data...
dirtrees.go Loading commit data...
doc.go Loading commit data...
filesystem.go Loading commit data...
format.go Loading commit data...
godoc.go Loading commit data...
httpzip.go Loading commit data...
index.go Loading commit data...
main.go Loading commit data...
mapping.go Loading commit data...
parser.go Loading commit data...
setup-godoc-app.bash Loading commit data...
snippet.go Loading commit data...
spec.go Loading commit data...
throttle.go Loading commit data...
utils.go Loading commit data...
zip.go Loading commit data...