• Robert Griesemer's avatar
    go/ast: fix ast.Walk · e1d6b3c9
    Robert Griesemer authored
    - change Walk signature to use an ast.Node instead of interface{}
    - add Pos functions to a couple of ast types to make them proper nodes
    - explicit nil checks where a node can be nil; incorrect ASTs cause Walk to crash
    
    For now ast.Walk is exercised extensively as part of godoc's indexer;
    so we have some confidence in its correctness. But this needs a test,
    eventually.
    
    Fixes #1326.
    
    R=rsc, r
    CC=golang-dev
    https://golang.org/cl/3481043
    e1d6b3c9
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
cc Loading commit data...
cgo Loading commit data...
cov Loading commit data...
ebnflint Loading commit data...
gc Loading commit data...
godefs Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
goinstall Loading commit data...
gomake Loading commit data...
gopack Loading commit data...
gotest Loading commit data...
govet Loading commit data...
goyacc Loading commit data...
hgpatch Loading commit data...
ld Loading commit data...
nm Loading commit data...
prof Loading commit data...
clean.bash Loading commit data...
make.bash Loading commit data...