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:
Martin Atkins 2018-09-25 08:24:10 -07:00
parent 2933fec4da
commit e1e97716f5

View File

@ -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) {