| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/kernel.h" | 5 #include "vm/kernel.h" |
| 6 | 6 |
| 7 #if !defined(DART_PRECOMPILED_RUNTIME) | 7 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 8 namespace dart { | 8 namespace dart { |
| 9 | 9 |
| 10 namespace kernel { | 10 namespace kernel { |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 visitor->VisitLet(this); | 745 visitor->VisitLet(this); |
| 746 } | 746 } |
| 747 | 747 |
| 748 | 748 |
| 749 void Let::VisitChildren(Visitor* visitor) { | 749 void Let::VisitChildren(Visitor* visitor) { |
| 750 visitor->VisitVariableDeclaration(variable()); | 750 visitor->VisitVariableDeclaration(variable()); |
| 751 body()->AcceptExpressionVisitor(visitor); | 751 body()->AcceptExpressionVisitor(visitor); |
| 752 } | 752 } |
| 753 | 753 |
| 754 | 754 |
| 755 BlockExpression::~BlockExpression() {} | |
| 756 | |
| 757 | |
| 758 void BlockExpression::AcceptExpressionVisitor(ExpressionVisitor* visitor) { | |
| 759 visitor->VisitBlockExpression(this); | |
| 760 } | |
| 761 | |
| 762 | |
| 763 void BlockExpression::VisitChildren(Visitor* visitor) { | |
| 764 visitor->VisitBlock(body()); | |
| 765 value()->AcceptExpressionVisitor(visitor); | |
| 766 } | |
| 767 | |
| 768 | |
| 769 Statement::~Statement() {} | 755 Statement::~Statement() {} |
| 770 | 756 |
| 771 | 757 |
| 772 void Statement::AcceptTreeVisitor(TreeVisitor* visitor) { | 758 void Statement::AcceptTreeVisitor(TreeVisitor* visitor) { |
| 773 AcceptStatementVisitor(visitor); | 759 AcceptStatementVisitor(visitor); |
| 774 } | 760 } |
| 775 | 761 |
| 776 | 762 |
| 777 InvalidStatement::~InvalidStatement() {} | 763 InvalidStatement::~InvalidStatement() {} |
| 778 | 764 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 void Program::VisitChildren(Visitor* visitor) { | 1188 void Program::VisitChildren(Visitor* visitor) { |
| 1203 VisitList(&libraries(), visitor); | 1189 VisitList(&libraries(), visitor); |
| 1204 visitor->VisitProcedureReference(main_method()); | 1190 visitor->VisitProcedureReference(main_method()); |
| 1205 } | 1191 } |
| 1206 | 1192 |
| 1207 | 1193 |
| 1208 } // namespace kernel | 1194 } // namespace kernel |
| 1209 | 1195 |
| 1210 } // namespace dart | 1196 } // namespace dart |
| 1211 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 1197 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| OLD | NEW |