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

Method Exec

interpreter/runtimecost.go:123–132  ·  view source on GitHub ↗
(frame *ExecutionFrame)

Source from the content-addressed store, hash-verified

121}
122
123func (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
134func (c *costTrackingInterpretable) Eval(ctx Activation) ref.Val {
135 return EvalActivation(ctx, c.Exec)

Callers

nothing calls this directly

Calls 4

NewErrFunction · 0.92
CostTrackerMethod · 0.80
SetCostTrackerMethod · 0.80
ExecMethod · 0.65

Tested by

no test coverage detected