aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/walk.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-04-13 13:05:16 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-04-19 10:26:57 +0200
commita116470dc3f3852a062312c93ebc8f2452027133 (patch)
tree02d734adc15cd1f6c930c7ac6ba3a3f0ac055c72 /pkg/ast/walk.go
parent365fba2440cee3aed74c774867a1f43e3e2f7aac (diff)
pkg/ast: add call attributes
Diffstat (limited to 'pkg/ast/walk.go')
-rw-r--r--pkg/ast/walk.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/ast/walk.go b/pkg/ast/walk.go
index 142befaaf..fe64b0676 100644
--- a/pkg/ast/walk.go
+++ b/pkg/ast/walk.go
@@ -77,6 +77,9 @@ func (n *Call) walk(cb func(Node)) {
if n.Ret != nil {
cb(n.Ret)
}
+ for _, a := range n.Attrs {
+ cb(a)
+ }
}
func (n *Struct) walk(cb func(Node)) {