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

Method Exec

ext/bindings.go:316–321  ·  view source on GitHub ↗

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

(frame *interpreter.ExecutionFrame)

Source from the content-addressed store, hash-verified

314// Exec implements the Interpretable interface method and pushes a new frame onto the
315// stack for the duration of the block execution.
316func (b *constantBlock) Exec(frame *interpreter.ExecutionFrame) ref.Val {
317 sa := constantSlotActivation{Activation: frame.Activation, slots: b.slots, slotCount: b.slotCount}
318 sa.frame = frame.Push(sa)
319 defer sa.frame.Pop()
320 return b.expr.Exec(sa.frame)
321}
322
323// Eval implements the interpreter.Interpretable interface method, and will proxy @index prefixed variable
324// lookups into a set of constant slots determined from the plan step.

Callers 1

EvalMethod · 0.95

Calls 3

ExecMethod · 0.65
PushMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected