operator-context.go: now it returns function keys too
This commit is contained in:
parent
4db015e4b1
commit
c124e880c4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user