operator-context.go: now it returns function keys too

This commit is contained in:
Celestino Amoroso 2024-05-02 11:02:01 +02:00
parent 4db015e4b1
commit c124e880c4

View File

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