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

Unified Diff: test/type_parser.dart

Issue 2439043002: Introduce Substitution class and Supertype class. (Closed)
Patch Set: Created 4 years, 2 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 | « test/class_hierarchy_basic.dart ('k') | test/type_substitute_bounds_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/type_parser.dart
diff --git a/test/type_parser.dart b/test/type_parser.dart
index b435554bbf04dd16fb10648f2e544ff1714f82dc..0dc1875bcd22ceb22c643c026ec40f2f0725d7e8 100644
--- a/test/type_parser.dart
+++ b/test/type_parser.dart
@@ -295,6 +295,11 @@ class LazyTypeEnvironment {
DartType parse(String type) => parseDartType(type, lookup);
+ Supertype parseSuper(String type) {
+ InterfaceType interfaceType = parse(type);
+ return new Supertype(interfaceType.classNode, interfaceType.typeArguments);
+ }
+
DartType parseFresh(String type) {
clearTypeParameters();
return parse(type);
« no previous file with comments | « test/class_hierarchy_basic.dart ('k') | test/type_substitute_bounds_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698