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

Unified Diff: pkg/kernel/lib/visitor.dart

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 | « pkg/kernel/lib/verifier.dart ('k') | pkg/kernel/test/type_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/visitor.dart
diff --git a/pkg/kernel/lib/visitor.dart b/pkg/kernel/lib/visitor.dart
index ed5ebee4cfc3ceba2c7122937f9e56e9eb9eb2bc..f61d12e514ca744b2c1d801a90b41e0c8b2c6abf 100644
--- a/pkg/kernel/lib/visitor.dart
+++ b/pkg/kernel/lib/visitor.dart
@@ -221,6 +221,7 @@ class TreeVisitor<R>
// Other tree nodes
R visitLibrary(Library node) => defaultTreeNode(node);
R visitDeferredImport(DeferredImport node) => defaultTreeNode(node);
+ R visitTypedef(Typedef node) => defaultTreeNode(node);
R visitTypeParameter(TypeParameter node) => defaultTreeNode(node);
R visitFunctionNode(FunctionNode node) => defaultTreeNode(node);
R visitArguments(Arguments node) => defaultTreeNode(node);
@@ -242,6 +243,7 @@ class DartTypeVisitor<R> {
R visitVectorType(VectorType node) => defaultDartType(node);
R visitFunctionType(FunctionType node) => defaultDartType(node);
R visitTypeParameterType(TypeParameterType node) => defaultDartType(node);
+ R visitTypedefType(TypedefType node) => defaultDartType(node);
}
class MemberReferenceVisitor<R> {
@@ -268,9 +270,11 @@ class Visitor<R> extends TreeVisitor<R>
R visitVectorType(VectorType node) => defaultDartType(node);
R visitFunctionType(FunctionType node) => defaultDartType(node);
R visitTypeParameterType(TypeParameterType node) => defaultDartType(node);
+ R visitTypedefType(TypedefType node) => defaultDartType(node);
// Class references
R visitClassReference(Class node) => null;
+ R visitTypedefReference(Typedef node) => null;
// Member references
R defaultMemberReference(Member node) => null;
« no previous file with comments | « pkg/kernel/lib/verifier.dart ('k') | pkg/kernel/test/type_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698