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

Method Exec

ext/bindings.go:322–327  ·  view source on GitHub ↗

Exec implements the Interpretable interface method and evaluates the block with constant slot resolution using a child execution frame scoped to the constant slots.

(frame *interpreter.ExecutionFrame)

Source from the content-addressed store, hash-verified

320// Exec implements the Interpretable interface method and evaluates the block with
321// constant slot resolution using a child execution frame scoped to the constant slots.
322func (b *constantBlock) Exec(frame *interpreter.ExecutionFrame) ref.Val {
323 child := frame.Push(b)
324 res := b.expr.Exec(child)
325 child.Pop()
326 return res
327}
328
329// Eval implements the interpreter.Interpretable interface method, and will proxy @index prefixed variable
330// lookups into a set of constant slots determined from the plan step.

Callers

nothing calls this directly

Calls 3

ExecMethod · 0.65
PushMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected