Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Side by Side Diff: runtime/vm/kernel.cc

Issue 2825053002: Add typedef AST node boilerplate. (Closed)
Patch Set: Update FastaVerifyingVisitor to work with the changes in VerifyingVisitor Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 79
80 void Library::VisitChildren(Visitor* visitor) { 80 void Library::VisitChildren(Visitor* visitor) {
81 VisitList(&classes(), visitor); 81 VisitList(&classes(), visitor);
82 VisitList(&procedures(), visitor); 82 VisitList(&procedures(), visitor);
83 VisitList(&fields(), visitor); 83 VisitList(&fields(), visitor);
84 } 84 }
85 85
86 86
87 Typedef::~Typedef() {}
88
89
90 void Typedef::AcceptTreeVisitor(TreeVisitor* visitor) {
91 visitor->VisitTypedef(this);
92 }
93
94
95 void Typedef::VisitChildren(Visitor* visitor) {
96 VisitList(&type_parameters(), visitor);
97 type()->AcceptDartTypeVisitor(visitor);
98 }
99
100
87 Class::~Class() {} 101 Class::~Class() {}
88 102
89 103
90 void Class::AcceptTreeVisitor(TreeVisitor* visitor) { 104 void Class::AcceptTreeVisitor(TreeVisitor* visitor) {
91 AcceptClassVisitor(visitor); 105 AcceptClassVisitor(visitor);
92 } 106 }
93 107
94 108
95 NormalClass::~NormalClass() {} 109 NormalClass::~NormalClass() {}
96 110
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 void InterfaceType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) { 1199 void InterfaceType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
1186 visitor->VisitInterfaceType(this); 1200 visitor->VisitInterfaceType(this);
1187 } 1201 }
1188 1202
1189 1203
1190 void InterfaceType::VisitChildren(Visitor* visitor) { 1204 void InterfaceType::VisitChildren(Visitor* visitor) {
1191 VisitList(&type_arguments(), visitor); 1205 VisitList(&type_arguments(), visitor);
1192 } 1206 }
1193 1207
1194 1208
1209 TypedefType::~TypedefType() {}
1210
1211
1212 void TypedefType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
1213 visitor->VisitTypedefType(this);
1214 }
1215
1216
1217 void TypedefType::VisitChildren(Visitor* visitor) {
1218 VisitList(&type_arguments(), visitor);
1219 }
1220
1221
1195 FunctionType::~FunctionType() {} 1222 FunctionType::~FunctionType() {}
1196 1223
1197 1224
1198 void FunctionType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) { 1225 void FunctionType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
1199 visitor->VisitFunctionType(this); 1226 visitor->VisitFunctionType(this);
1200 } 1227 }
1201 1228
1202 1229
1203 void FunctionType::VisitChildren(Visitor* visitor) { 1230 void FunctionType::VisitChildren(Visitor* visitor) {
1204 VisitList(&type_parameters(), visitor); 1231 VisitList(&type_parameters(), visitor);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 1289
1263 void Program::VisitChildren(Visitor* visitor) { 1290 void Program::VisitChildren(Visitor* visitor) {
1264 VisitList(&libraries(), visitor); 1291 VisitList(&libraries(), visitor);
1265 } 1292 }
1266 1293
1267 1294
1268 } // namespace kernel 1295 } // namespace kernel
1269 1296
1270 } // namespace dart 1297 } // namespace dart
1271 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1298 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698