MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ResolveFunction

Method ResolveFunction

interpreter/frame.go:297–302  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
297func (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.
305func (f *ExecutionFrame) AsPartialActivation() (PartialActivation, bool) {

Callers 1

Calls 1

ResolveFunctionMethod · 0.65

Tested by 1