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)
| 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. |
| 322 | func (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. |