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

Method Evaluate

eval/eval/ident_step.cc:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 slot_index_(slot_index) {}
134
135 absl::Status Evaluate(ExecutionFrameBase& frame, Value& result,
136 AttributeTrail& attribute) const override {
137 CEL_ASSIGN_OR_RETURN(const ComprehensionSlots::Slot* slot,
138 LookupSlot(name_, slot_index_, frame));
139
140 if (frame.attribute_tracking_enabled()) {
141 attribute = slot->attribute();
142 }
143 result = slot->value();
144 return absl::OkStatus();
145 }
146
147 private:
148 std::string name_;

Callers

nothing calls this directly

Calls 3

attributeMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected