Activation used to resolve identifiers by name and references by id. An Activation is the primary mechanism by which a caller supplies input into a CEL program.
| 25 | // |
| 26 | // An Activation is the primary mechanism by which a caller supplies input into a CEL program. |
| 27 | type Activation interface { |
| 28 | // ResolveName returns a value from the activation by qualified name, or false if the name |
| 29 | // could not be found. |
| 30 | ResolveName(name string) (any, bool) |
| 31 | |
| 32 | // Parent returns the parent of the current activation, may be nil. |
| 33 | // If non-nil, the parent will be searched during resolve calls. |
| 34 | Parent() Activation |
| 35 | } |
| 36 | |
| 37 | // EmptyActivation returns a variable-free activation. |
| 38 | func EmptyActivation() Activation { |
no outgoing calls
no test coverage detected