| 677 | return stmt; |
| 678 | } |
| 679 | virtual RefPtr<StatementSyntaxNode> VisitDoWhileStatement(DoWhileStatementSyntaxNode* stmt) override |
| 680 | { |
| 681 | RefPtr<DoInstruction> instr = new DoInstruction(); |
| 682 | variables.PushScope(); |
| 683 | codeWriter.PushNode(); |
| 684 | stmt->Predicate->Accept(this); |
| 685 | codeWriter.Insert(new ReturnInstruction(PopStack())); |
| 686 | instr->ConditionCode = codeWriter.PopNode(); |
| 687 | codeWriter.PushNode(); |
| 688 | stmt->Statement->Accept(this); |
| 689 | instr->BodyCode = codeWriter.PopNode(); |
| 690 | codeWriter.Insert(instr.Release()); |
| 691 | variables.PopScope(); |
| 692 | return stmt; |
| 693 | } |
| 694 | virtual RefPtr<StatementSyntaxNode> VisitForStatement(ForStatementSyntaxNode* stmt) override |
| 695 | { |
| 696 | RefPtr<ForInstruction> instr = new ForInstruction(); |