mirror of
https://github.com/golang/go
synced 2024-11-22 05:24:39 -07: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)
|
Walk(v, n.Name)
|
||||||
walkDeclList(v, n.Decls)
|
walkDeclList(v, n.Decls)
|
||||||
for _, g := range n.Comments {
|
|
||||||
Walk(v, g)
|
|
||||||
}
|
|
||||||
// don't walk n.Comments - they have been
|
// don't walk n.Comments - they have been
|
||||||
// visited already through the individual
|
// visited already through the individual
|
||||||
// nodes
|
// nodes
|
||||||
|
Loading…
Reference in New Issue
Block a user