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

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

Issue 1421003004: Add CoreClasses (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 5 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 | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/related_types.dart
diff --git a/tests/compiler/dart2js/related_types.dart b/tests/compiler/dart2js/related_types.dart
index d4d26d2f4fcea04fb7f0f647b98a392c8577ab12..12b60c593567f71e1a98e6bc19f65bea6c5c6967 100644
--- a/tests/compiler/dart2js/related_types.dart
+++ b/tests/compiler/dart2js/related_types.dart
@@ -78,6 +78,8 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
ClassWorld get world => compiler.world;
+ CoreClasses get coreClasses => compiler.coreClasses;
+
CoreTypes get coreTypes => compiler.coreTypes;
DiagnosticReporter get reporter => compiler.reporter;
@@ -167,7 +169,7 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
/// Returns the supertype of [receiver] that implements `Iterable`, if any.
InterfaceType findIterableType(DartType receiver) {
- return findClassType(receiver, compiler.iterableClass);
+ return findClassType(receiver, coreClasses.iterableClass);
}
/// Returns the element type of the supertype of [receiver] that implements
@@ -179,7 +181,7 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
/// Returns the supertype of [receiver] that implements `Map`, if any.
InterfaceType findMapType(DartType receiver) {
- return findClassType(receiver, compiler.mapClass);
+ return findClassType(receiver, coreClasses.mapClass);
}
/// Returns the key type of the supertype of [receiver] that implements
@@ -198,7 +200,7 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> {
/// Returns the supertype of [receiver] that implements `List`, if any.
InterfaceType findListType(DartType receiver) {
- return findClassType(receiver, compiler.listClass);
+ return findClassType(receiver, coreClasses.listClass);
}
/// Returns the element type of the supertype of [receiver] that implements
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698