| 172 | subexpression_(std::move(subexpression)) {} |
| 173 | |
| 174 | absl::Status Evaluate(ExecutionFrameBase& frame, Value& result, |
| 175 | AttributeTrail& attribute) const override { |
| 176 | CEL_RETURN_IF_ERROR(subexpression_->Evaluate(frame, result, attribute)); |
| 177 | |
| 178 | for (size_t i = 0; i < slot_count_; ++i) { |
| 179 | frame.comprehension_slots().ClearSlot(slot_index_ + i); |
| 180 | } |
| 181 | |
| 182 | return absl::OkStatus(); |
| 183 | } |
| 184 | |
| 185 | private: |
| 186 | size_t slot_index_; |