]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: Walk: do not walk comment list
authorRobert Griesemer <gri@golang.org>
Fri, 15 Jun 2012 23:55:15 +0000 (16:55 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 15 Jun 2012 23:55:15 +0000 (16:55 -0700)
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

src/pkg/go/ast/walk.go

index 181cfd1491adf416894a7c806e9800fb057dd320..66b1dc2499b986d54684428e47db256a00288ac9 100644 (file)
@@ -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