From 417a7f80d20b38168cb0c48bffbcd3e0c469cf57 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 15 Jun 2012 16:55:15 -0700 Subject: [PATCH] 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 --- src/pkg/go/ast/walk.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pkg/go/ast/walk.go b/src/pkg/go/ast/walk.go index 181cfd1491a..66b1dc2499b 100644 --- a/src/pkg/go/ast/walk.go +++ b/src/pkg/go/ast/walk.go @@ -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