(frame *ExecutionFrame)
| 121 | } |
| 122 | |
| 123 | func (c *costTrackingInterpretable) Exec(frame *ExecutionFrame) ref.Val { |
| 124 | if frame.CostTracker() == nil { |
| 125 | tracker, err := c.factory() |
| 126 | if err != nil { |
| 127 | return types.NewErr("cost tracker factory: %v", err) |
| 128 | } |
| 129 | frame.SetCostTracker(tracker) |
| 130 | } |
| 131 | return c.InterpretableV2.Exec(frame) |
| 132 | } |
| 133 | |
| 134 | func (c *costTrackingInterpretable) Eval(ctx Activation) ref.Val { |
| 135 | return EvalActivation(ctx, c.Exec) |
nothing calls this directly
no test coverage detected