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

Method GetState

interpreter/interpreter.go:145–150  ·  view source on GitHub ↗

GetState extracts the EvalState from the Activation.

(frame *ExecutionFrame)

Source from the content-addressed store, hash-verified

143
144// GetState extracts the EvalState from the Activation.
145func (et *evalStateFactory) GetState(frame *ExecutionFrame) any {
146 if frame.ctx == nil {
147 return nil
148 }
149 return frame.ctx.state
150}
151
152// Observe records the evaluation state for a given expression node and program step.
153func (et *evalStateFactory) Observe(vars Activation, id int64, programStep any, val ref.Val) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected