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

Method SetValue

interpreter/evalstate.go:68–74  ·  view source on GitHub ↗

SetValue is an implementation of the EvalState interface method.

(exprID int64, val ref.Val)

Source from the content-addressed store, hash-verified

66
67// SetValue is an implementation of the EvalState interface method.
68func (s *evalState) SetValue(exprID int64, val ref.Val) {
69 if val == nil {
70 delete(s.values, exprID)
71 } else {
72 s.values[exprID] = val
73 }
74}
75
76// Reset implements the EvalState interface method.
77func (s *evalState) Reset() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected