newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
(input any)
| 372 | |
| 373 | // newExecutionFrame creates an ExecutionFrame for the given input without a timeout context. |
| 374 | func (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 | } |
no test coverage detected