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

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

Issue 2849803002: Revert "Add typedef AST node boilerplate." (Closed)
Patch Set: 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
101 Class::~Class() {} 87 Class::~Class() {}
102 88
103 89
104 void Class::AcceptTreeVisitor(TreeVisitor* visitor) { 90 void Class::AcceptTreeVisitor(TreeVisitor* visitor) {
105 AcceptClassVisitor(visitor); 91 AcceptClassVisitor(visitor);
106 } 92 }
107 93
108 94
109 NormalClass::~NormalClass() {} 95 NormalClass::~NormalClass() {}
110 96
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 void InterfaceType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) { 1185 void InterfaceType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
1200 visitor->VisitInterfaceType(this); 1186 visitor->VisitInterfaceType(this);
1201 } 1187 }
1202 1188
1203 1189
1204 void InterfaceType::VisitChildren(Visitor* visitor) { 1190 void InterfaceType::VisitChildren(Visitor* visitor) {
1205 VisitList(&type_arguments(), visitor); 1191 VisitList(&type_arguments(), visitor);
1206 } 1192 }
1207 1193
1208 1194
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
1222 FunctionType::~FunctionType() {} 1195 FunctionType::~FunctionType() {}
1223 1196
1224 1197
1225 void FunctionType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) { 1198 void FunctionType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
1226 visitor->VisitFunctionType(this); 1199 visitor->VisitFunctionType(this);
1227 } 1200 }
1228 1201
1229 1202
1230 void FunctionType::VisitChildren(Visitor* visitor) { 1203 void FunctionType::VisitChildren(Visitor* visitor) {
1231 VisitList(&type_parameters(), visitor); 1204 VisitList(&type_parameters(), visitor);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 1262
1290 void Program::VisitChildren(Visitor* visitor) { 1263 void Program::VisitChildren(Visitor* visitor) {
1291 VisitList(&libraries(), visitor); 1264 VisitList(&libraries(), visitor);
1292 } 1265 }
1293 1266
1294 1267
1295 } // namespace kernel 1268 } // namespace kernel
1296 1269
1297 } // namespace dart 1270 } // namespace dart
1298 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1271 #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