The function parameter model has been modified to support the passing of named parameters
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ package expr
|
||||
// ---- Functor interface
|
||||
type Functor interface {
|
||||
Typer
|
||||
Invoke(ctx ExprContext, name string, args []any) (result any, err error)
|
||||
InvokeNamed(ctx ExprContext, name string, args map[string]any) (result any, err error)
|
||||
SetFunc(info ExprFunc)
|
||||
GetFunc() ExprFunc
|
||||
GetParams() []ExprFuncParam
|
||||
@@ -33,6 +33,6 @@ type ExprFunc interface {
|
||||
Functor() Functor
|
||||
Params() []ExprFuncParam
|
||||
ReturnType() string
|
||||
PrepareCall(parentCtx ExprContext, name string, varParams *[]any) (ctx ExprContext, err error)
|
||||
PrepareCall(parentCtx ExprContext, name string, callTerm *term) (ctx ExprContext, actualParams map[string]any, err error)
|
||||
AllocContext(parentCtx ExprContext) (ctx ExprContext)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user