| 64 | : ExpressionStepBase(expr_id), accu_slot_(accu_slot) {} |
| 65 | |
| 66 | absl::Status Evaluate(ExecutionFrame* frame) const override { |
| 67 | if (!frame->value_stack().HasEnough(2)) { |
| 68 | return absl::Status(absl::StatusCode::kInternal, "Value stack underflow"); |
| 69 | } |
| 70 | frame->value_stack().SwapAndPop(2, 1); |
| 71 | frame->comprehension_slots().ClearSlot(accu_slot_); |
| 72 | frame->iterator_stack().Pop(); |
| 73 | return absl::OkStatus(); |
| 74 | } |
| 75 | |
| 76 | private: |
| 77 | const size_t accu_slot_; |
nothing calls this directly
no test coverage detected