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

Unified Diff: tests/compiler/dart2js/type_test_helper.dart

Issue 2829683007: Extract DartTypeVisitor and subclasses from resolution_types. (Closed)
Patch Set: 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 | « tests/compiler/dart2js/related_types.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_test_helper.dart
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
index 10a5ceaea119f65347ba12d2f32b2430ff9e314f..7d03616225bf5cac810e6b09a26a9e7f06938078 100644
--- a/tests/compiler/dart2js/type_test_helper.dart
+++ b/tests/compiler/dart2js/type_test_helper.dart
@@ -31,6 +31,8 @@ class TypeEnvironment {
Resolution get resolution => compiler.resolution;
+ Types get types => resolution.types;
+
static Future<TypeEnvironment> create(String source,
{bool useMockCompiler: true,
bool expectNoErrors: false,
@@ -113,20 +115,20 @@ class TypeEnvironment {
}
bool isSubtype(ResolutionDartType T, ResolutionDartType S) {
- return compiler.types.isSubtype(T, S);
+ return types.isSubtype(T, S);
}
bool isMoreSpecific(ResolutionDartType T, ResolutionDartType S) {
- return compiler.types.isMoreSpecific(T, S);
+ return types.isMoreSpecific(T, S);
}
ResolutionDartType computeLeastUpperBound(
ResolutionDartType T, ResolutionDartType S) {
- return compiler.types.computeLeastUpperBound(T, S);
+ return types.computeLeastUpperBound(T, S);
}
ResolutionDartType flatten(ResolutionDartType T) {
- return compiler.types.flatten(T);
+ return types.flatten(T);
}
ResolutionFunctionType functionType(
« no previous file with comments | « tests/compiler/dart2js/related_types.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698