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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel.cc
diff --git a/runtime/vm/kernel.cc b/runtime/vm/kernel.cc
index 135609ec0b0b50b39f553ef216f0a57d07d326d7..4ec55e15245656dbce9c2c0ddd7c8fce096b3c06 100644
--- a/runtime/vm/kernel.cc
+++ b/runtime/vm/kernel.cc
@@ -84,6 +84,20 @@ void Library::VisitChildren(Visitor* visitor) {
}
+Typedef::~Typedef() {}
+
+
+void Typedef::AcceptTreeVisitor(TreeVisitor* visitor) {
+ visitor->VisitTypedef(this);
+}
+
+
+void Typedef::VisitChildren(Visitor* visitor) {
+ VisitList(&type_parameters(), visitor);
+ type()->AcceptDartTypeVisitor(visitor);
+}
+
+
Class::~Class() {}
@@ -1192,6 +1206,19 @@ void InterfaceType::VisitChildren(Visitor* visitor) {
}
+TypedefType::~TypedefType() {}
+
+
+void TypedefType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
+ visitor->VisitTypedefType(this);
+}
+
+
+void TypedefType::VisitChildren(Visitor* visitor) {
+ VisitList(&type_arguments(), visitor);
+}
+
+
FunctionType::~FunctionType() {}
« 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