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)
| 225 | // Exec implements the Interpretable interface method and pushes a new frame onto the |
| 226 | // execution frame for the duration of the block execution. |
| 227 | func (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. |
| 237 | func (b *dynamicBlock) Eval(activation cel.Activation) ref.Val { |
nothing calls this directly
no test coverage detected