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

Method Evaluate

eval/eval/comprehension_step.cc:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 : ExpressionStepBase(expr_id), accu_slot_(accu_slot) {}
65
66 absl::Status Evaluate(ExecutionFrame* frame) const override {
67 if (!frame->value_stack().HasEnough(2)) {
68 return absl::Status(absl::StatusCode::kInternal, "Value stack underflow");
69 }
70 frame->value_stack().SwapAndPop(2, 1);
71 frame->comprehension_slots().ClearSlot(accu_slot_);
72 frame->iterator_stack().Pop();
73 return absl::OkStatus();
74 }
75
76 private:
77 const size_t accu_slot_;

Callers

nothing calls this directly

Calls 4

HasEnoughMethod · 0.80
SwapAndPopMethod · 0.80
ClearSlotMethod · 0.80
PopMethod · 0.45

Tested by

no test coverage detected