ResolveFunction implements the FunctionActivation interface using the bindings resolved when the evaluation began, so the cost of a lookup does not depend on the number of enclosing scopes.
(name string)
| 295 | // ResolveFunction implements the FunctionActivation interface using the bindings resolved when |
| 296 | // the evaluation began, so the cost of a lookup does not depend on the number of enclosing scopes. |
| 297 | func (f *ExecutionFrame) ResolveFunction(name string) (functions.LateBoundOp, bool) { |
| 298 | if f.functions == nil { |
| 299 | return nil, false |
| 300 | } |
| 301 | return f.functions.ResolveFunction(name) |
| 302 | } |
| 303 | |
| 304 | // AsPartialActivation implements the PartialActivation interface by proxying to the internal scope or parent. |
| 305 | func (f *ExecutionFrame) AsPartialActivation() (PartialActivation, bool) { |