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

Unified Diff: pkg/kernel/test/type_parser.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/visitor.dart ('k') | pkg/kernel/test/typedef_unalias_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/test/type_parser.dart
diff --git a/pkg/kernel/test/type_parser.dart b/pkg/kernel/test/type_parser.dart
index 38209b4365e25bf3490f3d402d425246c48ac7f9..5bbb2d3220096cb1c29f373ded7a6f7baf508429 100644
--- a/pkg/kernel/test/type_parser.dart
+++ b/pkg/kernel/test/type_parser.dart
@@ -141,6 +141,8 @@ class DartTypeParser {
return fail('Unresolved type $name');
} else if (target is Class) {
return new InterfaceType(target, parseOptionalTypeArgumentList());
+ } else if (target is Typedef) {
+ return new TypedefType(target, parseOptionalTypeArgumentList());
} else if (target is TypeParameter) {
if (peekToken() == Token.LeftAngle) {
return fail('Attempt to apply type arguments to a type variable');
« no previous file with comments | « pkg/kernel/lib/visitor.dart ('k') | pkg/kernel/test/typedef_unalias_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698