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

Method newExecutionFrame

cel/program.go:374–385  ·  view source on GitHub ↗

newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.

(input any)

Source from the content-addressed store, hash-verified

372
373// newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
374func (p *prog) newExecutionFrame(input any) (*interpreter.ExecutionFrame, error) {
375 frame, err := interpreter.NewExecutionFrame(input)
376 if err != nil {
377 return nil, err
378 }
379 if p.defaultVars != nil {
380 // Update the frame's activation in place.
381 frame.Activation = interpreter.NewHierarchicalActivation(p.defaultVars, frame.Activation)
382 }
383
384 return frame, nil
385}

Callers 2

EvalMethod · 0.95
ContextEvalMethod · 0.95

Calls 2

NewExecutionFrameFunction · 0.92

Tested by

no test coverage detected