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.
| 59 | // The execution frame must not be stored in any fashion as its lifecycle is completely |
| 60 | // controlled by the CEL evaluation process. |
| 61 | type ExecutionFrame struct { |
| 62 | // Activation provides the context for resolving variables by name. |
| 63 | Activation |
| 64 | |
| 65 | // parent provides the context for parent scopes (used for comprehension iterators). |
| 66 | parent *ExecutionFrame |
| 67 | |
| 68 | // ctx provides the shared evaluation state across frames. |
| 69 | ctx *evalContext |
| 70 | } |
| 71 | |
| 72 | // NewExecutionFrame creates a new execution frame from the pool. |
| 73 | func NewExecutionFrame(input any) (*ExecutionFrame, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected