mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
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
This commit is contained in:
parent
18b281978c
commit
417a7f80d2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue