| 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_; |