NativeFunction represents a function implemented in Go.
| 255 | |
| 256 | // NativeFunction represents a function implemented in Go. |
| 257 | type NativeFunction struct { |
| 258 | Name string |
| 259 | Func func([]interface{}) (interface{}, error) |
| 260 | Params ast.Identifiers |
| 261 | } |
| 262 | |
| 263 | // evalCall evaluates a call to a NativeFunction and returns the result. |
| 264 | func (native *NativeFunction) evalCall(arguments callArguments, i *interpreter) (value, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected