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

Method Evaluate

eval/eval/lazy_init_step.cc:174–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 subexpression_(std::move(subexpression)) {}
173
174 absl::Status Evaluate(ExecutionFrameBase& frame, Value& result,
175 AttributeTrail& attribute) const override {
176 CEL_RETURN_IF_ERROR(subexpression_->Evaluate(frame, result, attribute));
177
178 for (size_t i = 0; i < slot_count_; ++i) {
179 frame.comprehension_slots().ClearSlot(slot_index_ + i);
180 }
181
182 return absl::OkStatus();
183 }
184
185 private:
186 size_t slot_index_;

Callers

nothing calls this directly

Calls 2

ClearSlotMethod · 0.80
EvaluateMethod · 0.45

Tested by

no test coverage detected