ExecutionFrame provides the context for a single evaluation of an expression. The execution frame must not be stored in any fashion as its lifecycle is completely controlled by the CEL evaluation process.
| 70 | // The execution frame must not be stored in any fashion as its lifecycle is completely |
| 71 | // controlled by the CEL evaluation process. |
| 72 | type ExecutionFrame struct { |
| 73 | // Activation provides the context for resolving variables by name. |
| 74 | Activation |
| 75 | |
| 76 | // parent provides the context for parent scopes (used for comprehension iterators). |
| 77 | parent *ExecutionFrame |
| 78 | |
| 79 | // ctx provides the shared evaluation state across frames. |
| 80 | ctx *evalContext |
| 81 | } |
| 82 | |
| 83 | // NewExecutionFrame creates a new execution frame from the pool. |
| 84 | func NewExecutionFrame(input any) (*ExecutionFrame, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected