From 0352cdb054730cf94e51e35f581c058a1d9c8769 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Sat, 22 Sep 2012 05:53:39 +1000 Subject: [PATCH] [release-branch.go1] go/ast: Walk: do not walk comment list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport 5e3661048f2e 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 181cfd1491..66b1dc2499 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 -- 2.50.0