hcl/ast: walk the objectlist within an objecttype
This commit is contained in:
parent
e3ed2553ca
commit
15fce08259
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user