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

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

Issue 2653203002: Use entities in CommonElements interface. (Closed)
Patch Set: Created 3 years, 11 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/type_checker_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 8b483033b0e0d82b6d8bbcf0479fb4e0e4016efa..99d9c31ae718adf2d5c7eea533594cbdf07f00c5 100644
--- a/tests/compiler/dart2js/related_types.dart
+++ b/tests/compiler/dart2js/related_types.dart
@@ -262,7 +262,7 @@ class RelatedTypesChecker
}
@override
- ResolutionDartType visitEquals(Send node, Node left, Node right, _) {
+ ResolutionInterfaceType visitEquals(Send node, Node left, Node right, _) {
ResolutionDartType leftType = apply(left);
ResolutionDartType rightType = apply(right);
checkRelated(node, leftType, rightType);
@@ -270,7 +270,7 @@ class RelatedTypesChecker
}
@override
- ResolutionDartType visitNotEquals(Send node, Node left, Node right, _) {
+ ResolutionInterfaceType visitNotEquals(Send node, Node left, Node right, _) {
ResolutionDartType leftType = apply(left);
ResolutionDartType rightType = apply(right);
checkRelated(node, leftType, rightType);
@@ -289,17 +289,17 @@ class RelatedTypesChecker
}
@override
- ResolutionDartType visitLiteralInt(LiteralInt node) {
+ ResolutionInterfaceType visitLiteralInt(LiteralInt node) {
return commonElements.intType;
}
@override
- ResolutionDartType visitLiteralString(LiteralString node) {
+ ResolutionInterfaceType visitLiteralString(LiteralString node) {
return commonElements.stringType;
}
@override
- ResolutionDartType visitLiteralBool(LiteralBool node) {
+ ResolutionInterfaceType visitLiteralBool(LiteralBool node) {
return commonElements.boolType;
}
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698