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

Function NewEvalState

interpreter/evalstate.go:44–48  ·  view source on GitHub ↗

NewEvalState returns an EvalState instanced used to observe the intermediate evaluations of an expression.

()

Source from the content-addressed store, hash-verified

42// NewEvalState returns an EvalState instanced used to observe the intermediate
43// evaluations of an expression.
44func NewEvalState() EvalState {
45 return &evalState{
46 values: make(map[int64]ref.Val),
47 }
48}
49
50// IDs implements the EvalState interface method.
51func (s *evalState) IDs() []int64 {

Callers 7

StateMethod · 0.92
TestPruneFunction · 0.85
TestInterpreterFunction · 0.85
PruneAstFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestPruneFunction · 0.68
TestInterpreterFunction · 0.68