| 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_; |
nothing calls this directly
no test coverage detected