zclsyntax: FIXME to support parent ctx in function call

This commit is contained in:
Martin Atkins 2017-06-14 08:54:53 -07:00
parent 9340e6da4e
commit 0cf39f0f62

View File

@ -129,6 +129,7 @@ func (e *FunctionCallExpr) Value(ctx *zcl.EvalContext) (cty.Value, zcl.Diagnosti
}
}
// FIXME: also need to look in ctx.parent, etc
f, exists := ctx.Functions[e.Name]
if !exists {
avail := make([]string, 0, len(ctx.Functions))