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

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

Issue 2603263002: Prefix resolution_types with Resolution. (Closed)
Patch Set: Rebased 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
Index: tests/compiler/dart2js/flatten_test.dart
diff --git a/tests/compiler/dart2js/flatten_test.dart b/tests/compiler/dart2js/flatten_test.dart
index 2e3c64dc6fa519788b43d7d2b6eb0bc0f3466e66..c624e48b71701654e46e8830bed3fe467ff85a1c 100644
--- a/tests/compiler/dart2js/flatten_test.dart
+++ b/tests/compiler/dart2js/flatten_test.dart
@@ -16,8 +16,9 @@ void main() {
abstract class G<T> implements Future<G<T>> {}
abstract class H<T> implements Future<H<H<T>>> {}
""").then((env) {
- void check(DartType T, DartType expectedFlattenedType) {
- DartType flattenedType = env.flatten(T);
+ void check(
+ ResolutionDartType T, ResolutionDartType expectedFlattenedType) {
+ ResolutionDartType flattenedType = env.flatten(T);
Expect.equals(
expectedFlattenedType,
flattenedType,
@@ -29,13 +30,13 @@ void main() {
ClassElement F = env.getElement('F');
ClassElement G = env.getElement('G');
ClassElement H = env.getElement('H');
- DartType int_ = env['int'];
- DartType dynamic_ = env['dynamic'];
- DartType Future_int = instantiate(Future_, [int_]);
- DartType F_int = instantiate(F, [int_]);
- DartType G_int = instantiate(G, [int_]);
- DartType H_int = instantiate(H, [int_]);
- DartType H_H_int = instantiate(H, [H_int]);
+ ResolutionDartType int_ = env['int'];
+ ResolutionDartType dynamic_ = env['dynamic'];
+ ResolutionDartType Future_int = instantiate(Future_, [int_]);
+ ResolutionDartType F_int = instantiate(F, [int_]);
+ ResolutionDartType G_int = instantiate(G, [int_]);
+ ResolutionDartType H_int = instantiate(H, [int_]);
+ ResolutionDartType H_H_int = instantiate(H, [H_int]);
// flatten(int) = int
check(int_, int_);
« no previous file with comments | « tests/compiler/dart2js/analyze_dart2js_helpers_test.dart ('k') | tests/compiler/dart2js/kernel/closed_world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698