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

Method Evaluate

eval/eval/ident_step.cc:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 : ExpressionStepBase(expr_id), name_(name), slot_index_(slot_index) {}
100
101 absl::Status Evaluate(ExecutionFrame* frame) const override {
102 CEL_ASSIGN_OR_RETURN(const ComprehensionSlots::Slot* slot,
103 LookupSlot(name_, slot_index_, *frame));
104 frame->value_stack().Push(slot->value(), slot->attribute());
105 return absl::OkStatus();
106 }
107
108 private:
109 std::string name_;

Callers

nothing calls this directly

Calls 3

attributeMethod · 0.80
PushMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected