MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Evaluate

Method Evaluate

eval/eval/create_struct_step.cc:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134absl::Status CreateStructStepForStruct::Evaluate(ExecutionFrame* frame) const {
135 if (frame->value_stack().size() < entries_.size()) {
136 return absl::InternalError("CreateStructStepForStruct: stack underflow");
137 }
138 CEL_ASSIGN_OR_RETURN(Value result, DoEvaluate(frame));
139 frame->value_stack().PopAndPush(entries_.size(), std::move(result));
140
141 return absl::OkStatus();
142}
143
144class DirectCreateStructStep : public DirectExpressionStep {
145 public:

Callers

nothing calls this directly

Calls 15

ErrorValueFunction · 0.85
TypeConversionErrorFunction · 0.85
PopAndPushMethod · 0.80
HasValueMethod · 0.80
CEL_ASSIGN_OR_RETURNFunction · 0.70
sizeMethod · 0.45
IsErrorMethod · 0.45
IsUnknownMethod · 0.45
AddMethod · 0.45
GetUnknownMethod · 0.45

Tested by

no test coverage detected