| 654 | return function; |
| 655 | } |
| 656 | virtual RefPtr<StatementSyntaxNode> VisitBlockStatement(BlockStatementSyntaxNode* stmt) override |
| 657 | { |
| 658 | variables.PushScope(); |
| 659 | for (auto & subStmt : stmt->Statements) |
| 660 | subStmt->Accept(this); |
| 661 | variables.PopScope(); |
| 662 | return stmt; |
| 663 | } |
| 664 | virtual RefPtr<StatementSyntaxNode> VisitWhileStatement(WhileStatementSyntaxNode* stmt) override |
| 665 | { |
| 666 | RefPtr<WhileInstruction> instr = new WhileInstruction(); |