Commit 92743615 authored by Robert Griesemer's avatar Robert Griesemer

TBR:

fix typo that prevented function bodies from being indexed (ouch!)

R=rsc
http://go/go-review/1024035
parent fb5fce55
......@@ -557,7 +557,7 @@ func (x *Indexer) Visit(node interface{}) bool {
x.visitIdent(kind, n.Name);
ast.Walk(x, n.Type);
if n.Body != nil {
ast.Walk(x, n.Type)
ast.Walk(x, n.Body)
}
case *ast.File:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment