mirror of https://github.com/golang/go.git
- 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
|
||
|---|---|---|
| .. | ||
| cmd | ||
| lib9 | ||
| libbio | ||
| libmach | ||
| pkg | ||
| Make.ccmd | ||
| Make.clib | ||
| Make.cmd | ||
| Make.common | ||
| Make.inc | ||
| Make.pkg | ||
| all-nacl.bash | ||
| all.bash | ||
| clean.bash | ||
| env.bash | ||
| make.bash | ||
| quietgcc.bash | ||
| run.bash | ||
| sudo.bash | ||
| version.bash | ||