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

Method Evaluate

eval/eval/create_map_step.cc:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122absl::Status CreateStructStepForMap::Evaluate(ExecutionFrame* frame) const {
123 if (frame->value_stack().size() < 2 * entry_count_) {
124 return absl::InternalError("CreateStructStepForMap: stack underflow");
125 }
126
127 CEL_ASSIGN_OR_RETURN(auto result, DoEvaluate(frame));
128
129 frame->value_stack().PopAndPush(2 * entry_count_, std::move(result));
130
131 return absl::OkStatus();
132}
133
134class DirectCreateMapStep : public DirectExpressionStep {
135 public:

Callers

nothing calls this directly

Calls 15

CheckMapKeyFunction · 0.85
ErrorValueAssignClass · 0.85
TypeConversionErrorFunction · 0.85
PopAndPushMethod · 0.80
WithMethod · 0.80
HasValueMethod · 0.80
sizeMethod · 0.45
arenaMethod · 0.45
ReserveMethod · 0.45
IsErrorMethod · 0.45

Tested by

no test coverage detected