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

Method Evaluate

eval/eval/lazy_init_step.cc:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 subexpression_index_(subexpression_index) {}
45
46 absl::Status Evaluate(ExecutionFrame* frame) const override {
47 ComprehensionSlot* slot = frame->comprehension_slots().Get(slot_index_);
48 if (slot->Has()) {
49 frame->value_stack().Push(slot->value(), slot->attribute());
50 } else {
51 frame->Call(slot_index_, subexpression_index_);
52 }
53 return absl::OkStatus();
54 }
55
56 private:
57 const size_t slot_index_;

Callers

nothing calls this directly

Calls 6

attributeMethod · 0.80
CallMethod · 0.80
GetMethod · 0.45
HasMethod · 0.45
PushMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected