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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java

Issue 8317004: DartC: Replace Array by List in the type-checker. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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
Index: compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java b/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
index ab2a614ef3a790d9b84c1a4baf8049add74bdbbe..e9342deb1b4670d992d5d957c5edee48c4c8d705 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
@@ -35,14 +35,12 @@ abstract class TypeTestCase extends TestCase {
final ClassElement doubleElement = element("double", itype(number));
final ClassElement bool = element("bool", itype(object));
final ClassElement string = element("String", itype(object));
- final ClassElement array = element("Array", itype(object), typeVar("E", itype(object)));
- final ClassElement growableArray = makeGrowableArray(array);
+ final ClassElement list = element("List", itype(object), typeVar("E", itype(object)));
final ClassElement map = element("Map", itype(object),
typeVar("K", itype(object)), typeVar("V", itype(object)));
final ClassElement stackTrace = element("StackTrace", itype(object));
final ClassElement reverseMap = makeReverseMap(map);
- final InterfaceType objectArray = itype(array, itype(object));
- final InterfaceType growableObjectArray = itype(growableArray, itype(object));
+ final InterfaceType objectList = itype(list, itype(object));
final InterfaceType objectMap = itype(map, itype(object), itype(object));
final InterfaceType reverseObjectMap = itype(reverseMap, itype(object), itype(object));
final InterfaceType stringIntMap = itype(map, itype(string), itype(intElement));
@@ -80,11 +78,6 @@ abstract class TypeTestCase extends TestCase {
return new TypeVariableImplementation(element);
}
- private ClassElement makeGrowableArray(ClassElement array) {
- TypeVariable E = typeVar("E", itype(object));
- return element("GrowableArray", itype(array, E), E);
- }
-
private ClassElement makeReverseMap(ClassElement map) {
TypeVariable K = typeVar("K", itype(object));
TypeVariable V = typeVar("V", itype(object));

Powered by Google App Engine
This is Rietveld 408576698