From c124e880c440a2e2b4e8f104ac510ef604c304d1 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Thu, 2 May 2024 11:02:01 +0200 Subject: [PATCH] operator-context.go: now it returns function keys too --- operator-context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/operator-context.go b/operator-context.go index b4c0464..4ee4685 100644 --- a/operator-context.go +++ b/operator-context.go @@ -36,6 +36,10 @@ func evalContextValue(ctx ExprContext, self *term) (v any, err error) { for _, key := range keys { d[key], _ = sourceCtx.GetVar(key) } + keys = sourceCtx.EnumFuncs(func(name string) bool { return true }) + for _, key := range keys { + d[key], _ =sourceCtx.GetFuncInfo(key) + } v = d } else { err = self.errIncompatibleType(childValue)