From 0cf39f0f62b162010d974e472d6bb52c6d88021f Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Wed, 14 Jun 2017 08:54:53 -0700 Subject: [PATCH] zclsyntax: FIXME to support parent ctx in function call --- zcl/zclsyntax/expression.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zcl/zclsyntax/expression.go b/zcl/zclsyntax/expression.go index 539004e..dcefbfe 100644 --- a/zcl/zclsyntax/expression.go +++ b/zcl/zclsyntax/expression.go @@ -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))