Commit 417a7f80 authored by Robert Griesemer's avatar Robert Griesemer

go/ast: Walk: do not walk comment list

A comment to that effect was introduced
with rev d332f4b9cef5 but the respective
code wasn't deleted.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6304086
parent 18b28197
......@@ -344,9 +344,6 @@ func Walk(v Visitor, node Node) {
}
Walk(v, n.Name)
walkDeclList(v, n.Decls)
for _, g := range n.Comments {
Walk(v, g)
}
// don't walk n.Comments - they have been
// visited already through the individual
// nodes
......
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