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) Walk(l, fn)
} }
case *ObjectType: case *ObjectType:
for _, l := range n.List.Items { Walk(n.List, fn)
Walk(l, fn)
}
default: default:
fmt.Printf(" unknown type: %T\n", n) fmt.Printf(" unknown type: %T\n", n)
} }