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

Method Exec

ext/bindings.go:227–234  ·  view source on GitHub ↗

Exec implements the Interpretable interface method and pushes a new frame onto the execution frame for the duration of the block execution.

(frame *interpreter.ExecutionFrame)

Source from the content-addressed store, hash-verified

225// Exec implements the Interpretable interface method and pushes a new frame onto the
226// execution frame for the duration of the block execution.
227func (b *dynamicBlock) Exec(frame *interpreter.ExecutionFrame) ref.Val {
228 sa := b.slotActivationPool.Get().(*dynamicSlotActivation)
229 sa.frame = frame.Push(sa)
230 res := b.expr.Exec(sa.frame)
231 sa.frame.Pop()
232 b.clearSlots(sa)
233 return res
234}
235
236// Eval implements the Interpretable interface method.
237func (b *dynamicBlock) Eval(activation cel.Activation) ref.Val {

Callers

nothing calls this directly

Calls 5

clearSlotsMethod · 0.95
GetMethod · 0.65
ExecMethod · 0.65
PushMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected