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 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 void TypeParameter::AcceptTreeVisitor(TreeVisitor* visitor) { | 1170 void TypeParameter::AcceptTreeVisitor(TreeVisitor* visitor) { |
1171 visitor->VisitTypeParameter(this); | 1171 visitor->VisitTypeParameter(this); |
1172 } | 1172 } |
1173 | 1173 |
1174 | 1174 |
1175 void TypeParameter::VisitChildren(Visitor* visitor) { | 1175 void TypeParameter::VisitChildren(Visitor* visitor) { |
1176 bound()->AcceptDartTypeVisitor(visitor); | 1176 bound()->AcceptDartTypeVisitor(visitor); |
1177 } | 1177 } |
1178 | 1178 |
1179 | 1179 |
1180 Program::~Program() { | 1180 Program::~Program() {} |
1181 while (valid_token_positions.length() > 0) { | |
1182 delete valid_token_positions.RemoveLast(); | |
1183 } | |
1184 while (yield_token_positions.length() > 0) { | |
1185 delete yield_token_positions.RemoveLast(); | |
1186 } | |
1187 } | |
1188 | 1181 |
1189 | 1182 |
1190 void Program::AcceptTreeVisitor(TreeVisitor* visitor) { | 1183 void Program::AcceptTreeVisitor(TreeVisitor* visitor) { |
1191 visitor->VisitProgram(this); | 1184 visitor->VisitProgram(this); |
1192 } | 1185 } |
1193 | 1186 |
1194 | 1187 |
1195 void Program::VisitChildren(Visitor* visitor) { | 1188 void Program::VisitChildren(Visitor* visitor) { |
1196 VisitList(&libraries(), visitor); | 1189 VisitList(&libraries(), visitor); |
1197 visitor->VisitProcedureReference(main_method()); | 1190 visitor->VisitProcedureReference(main_method()); |
1198 } | 1191 } |
1199 | 1192 |
1200 | 1193 |
1201 } // namespace kernel | 1194 } // namespace kernel |
1202 | 1195 |
1203 } // namespace dart | 1196 } // namespace dart |
1204 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 1197 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
OLD | NEW |