hclsyntax: RelativeTraversalExpr walkChildNodes implementation
Unlike ScopeTraversalExpr, this node type _does_ have an expression as its source and so it must include that expression in an AST walk.
This commit is contained in:
parent
2933fec4da
commit
e1e97716f5
@ -132,7 +132,7 @@ type RelativeTraversalExpr struct {
|
||||
}
|
||||
|
||||
func (e *RelativeTraversalExpr) walkChildNodes(w internalWalkFunc) {
|
||||
// Scope traversals have no child nodes
|
||||
e.Source = w(e.Source).(Expression)
|
||||
}
|
||||
|
||||
func (e *RelativeTraversalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) {
|
||||
|
Loading…
Reference in New Issue
Block a user