hcl/ast: walk the objectlist within an objecttype

This commit is contained in:
Mitchell Hashimoto 2015-11-07 16:47:50 -08:00
parent e3ed2553ca
commit 15fce08259

View File

@ -31,9 +31,7 @@ func Walk(node Node, fn func(Node) bool) {
Walk(l, fn)
}
case *ObjectType:
for _, l := range n.List.Items {
Walk(l, fn)
}
Walk(n.List, fn)
default:
fmt.Printf(" unknown type: %T\n", n)
}