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

Method Exec

interpreter/interpretable.go:1444–1450  ·  view source on GitHub ↗

Exec implements the InterpretableV2 interface method.

(frame *ExecutionFrame)

Source from the content-addressed store, hash-verified

1442
1443// Exec implements the InterpretableV2 interface method.
1444func (a *evalAttr) Exec(frame *ExecutionFrame) ref.Val {
1445 v, err := a.attr.Resolve(frame)
1446 if err != nil {
1447 return types.LabelErrNode(a.ID(), types.WrapErr(err))
1448 }
1449 return a.adapter.NativeToValue(v)
1450}
1451
1452// Eval implements the Interpretable interface method.
1453func (a *evalAttr) Eval(ctx Activation) ref.Val {

Callers 1

EvalMethod · 0.95

Calls 5

IDMethod · 0.95
LabelErrNodeFunction · 0.92
WrapErrFunction · 0.92
ResolveMethod · 0.65
NativeToValueMethod · 0.65

Tested by

no test coverage detected