2020-09-05 06:24:52 +08:00
|
|
|
package eval
|
|
|
|
|
|
|
|
// Callable wraps the Call method.
|
|
|
|
type Callable interface {
|
|
|
|
// Call calls the receiver in a Frame with arguments and options.
|
2022-03-20 23:50:25 +08:00
|
|
|
Call(fm *Frame, args []any, opts map[string]any) error
|
2020-09-05 06:24:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
// NoArgs is an empty argument list. It can be used as an argument to Call.
|
2022-03-20 23:50:25 +08:00
|
|
|
NoArgs = []any{}
|
2020-09-05 06:24:52 +08:00
|
|
|
// NoOpts is an empty option map. It can be used as an argument to Call.
|
2022-03-20 23:50:25 +08:00
|
|
|
NoOpts = map[string]any{}
|
2020-09-05 06:24:52 +08:00
|
|
|
)
|