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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 visitor->VisitLet(this); | 888 visitor->VisitLet(this); |
889 } | 889 } |
890 | 890 |
891 | 891 |
892 void Let::VisitChildren(Visitor* visitor) { | 892 void Let::VisitChildren(Visitor* visitor) { |
893 visitor->VisitVariableDeclaration(variable()); | 893 visitor->VisitVariableDeclaration(variable()); |
894 body()->AcceptExpressionVisitor(visitor); | 894 body()->AcceptExpressionVisitor(visitor); |
895 } | 895 } |
896 | 896 |
897 | 897 |
| 898 VectorCreation::~VectorCreation() {} |
| 899 |
| 900 |
| 901 void VectorCreation::AcceptExpressionVisitor(ExpressionVisitor* visitor) { |
| 902 visitor->VisitVectorCreation(this); |
| 903 } |
| 904 |
| 905 |
| 906 void VectorCreation::VisitChildren(Visitor* visitor) {} |
| 907 |
| 908 |
| 909 VectorGet::~VectorGet() {} |
| 910 |
| 911 |
| 912 void VectorGet::AcceptExpressionVisitor(ExpressionVisitor* visitor) { |
| 913 visitor->VisitVectorGet(this); |
| 914 } |
| 915 |
| 916 |
| 917 void VectorGet::VisitChildren(Visitor* visitor) { |
| 918 vector_expression()->AcceptExpressionVisitor(visitor); |
| 919 } |
| 920 |
| 921 |
| 922 VectorSet::~VectorSet() {} |
| 923 |
| 924 |
| 925 void VectorSet::AcceptExpressionVisitor(ExpressionVisitor* visitor) { |
| 926 visitor->VisitVectorSet(this); |
| 927 } |
| 928 |
| 929 |
| 930 void VectorSet::VisitChildren(Visitor* visitor) { |
| 931 vector_expression()->AcceptExpressionVisitor(visitor); |
| 932 value()->AcceptExpressionVisitor(visitor); |
| 933 } |
| 934 |
| 935 |
| 936 VectorCopy::~VectorCopy() {} |
| 937 |
| 938 |
| 939 void VectorCopy::AcceptExpressionVisitor(ExpressionVisitor* visitor) { |
| 940 visitor->VisitVectorCopy(this); |
| 941 } |
| 942 |
| 943 |
| 944 void VectorCopy::VisitChildren(Visitor* visitor) { |
| 945 vector_expression()->AcceptExpressionVisitor(visitor); |
| 946 } |
| 947 |
| 948 |
| 949 ClosureCreation::~ClosureCreation() {} |
| 950 |
| 951 |
| 952 void ClosureCreation::AcceptExpressionVisitor(ExpressionVisitor* visitor) { |
| 953 visitor->VisitClosureCreation(this); |
| 954 } |
| 955 |
| 956 |
| 957 void ClosureCreation::VisitChildren(Visitor* visitor) { |
| 958 context_vector()->AcceptExpressionVisitor(visitor); |
| 959 function_type()->AcceptDartTypeVisitor(visitor); |
| 960 } |
| 961 |
| 962 |
898 Statement::~Statement() {} | 963 Statement::~Statement() {} |
899 | 964 |
900 | 965 |
901 void Statement::AcceptTreeVisitor(TreeVisitor* visitor) { | 966 void Statement::AcceptTreeVisitor(TreeVisitor* visitor) { |
902 AcceptStatementVisitor(visitor); | 967 AcceptStatementVisitor(visitor); |
903 } | 968 } |
904 | 969 |
905 | 970 |
906 InvalidStatement::~InvalidStatement() {} | 971 InvalidStatement::~InvalidStatement() {} |
907 | 972 |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 | 1353 |
1289 | 1354 |
1290 void TypeParameterType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) { | 1355 void TypeParameterType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) { |
1291 visitor->VisitTypeParameterType(this); | 1356 visitor->VisitTypeParameterType(this); |
1292 } | 1357 } |
1293 | 1358 |
1294 | 1359 |
1295 void TypeParameterType::VisitChildren(Visitor* visitor) {} | 1360 void TypeParameterType::VisitChildren(Visitor* visitor) {} |
1296 | 1361 |
1297 | 1362 |
| 1363 VectorType::~VectorType() {} |
| 1364 |
| 1365 |
| 1366 void VectorType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) { |
| 1367 visitor->VisitVectorType(this); |
| 1368 } |
| 1369 |
| 1370 |
| 1371 void VectorType::VisitChildren(Visitor* visitor) {} |
| 1372 |
| 1373 |
1298 TypeParameter::~TypeParameter() {} | 1374 TypeParameter::~TypeParameter() {} |
1299 | 1375 |
1300 | 1376 |
1301 void TypeParameter::AcceptTreeVisitor(TreeVisitor* visitor) { | 1377 void TypeParameter::AcceptTreeVisitor(TreeVisitor* visitor) { |
1302 visitor->VisitTypeParameter(this); | 1378 visitor->VisitTypeParameter(this); |
1303 } | 1379 } |
1304 | 1380 |
1305 | 1381 |
1306 void TypeParameter::VisitChildren(Visitor* visitor) { | 1382 void TypeParameter::VisitChildren(Visitor* visitor) { |
1307 bound()->AcceptDartTypeVisitor(visitor); | 1383 bound()->AcceptDartTypeVisitor(visitor); |
(...skipping 17 matching lines...) Expand all Loading... |
1325 | 1401 |
1326 void Program::VisitChildren(Visitor* visitor) { | 1402 void Program::VisitChildren(Visitor* visitor) { |
1327 VisitList(&libraries(), visitor); | 1403 VisitList(&libraries(), visitor); |
1328 } | 1404 } |
1329 | 1405 |
1330 | 1406 |
1331 } // namespace kernel | 1407 } // namespace kernel |
1332 | 1408 |
1333 } // namespace dart | 1409 } // namespace dart |
1334 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 1410 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
OLD | NEW |