Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java |
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java |
index ad69914c801ec5dbf5a5df6836e744ac43c68996..53cb44fe6de72d8e1cae9162d912f37b3861b689 100644 |
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java |
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java |
@@ -13,6 +13,7 @@ import com.google.dart.compiler.ErrorCode; |
import com.google.dart.compiler.ast.DartClass; |
import com.google.dart.compiler.ast.DartIdentifier; |
import com.google.dart.compiler.ast.DartNode; |
+import com.google.dart.compiler.ast.DartParameterizedTypeNode; |
import com.google.dart.compiler.ast.DartTypeNode; |
import com.google.dart.compiler.ast.DartTypeParameter; |
import com.google.dart.compiler.ast.DartUnit; |
@@ -102,7 +103,7 @@ abstract class ResolverTestCase extends TestCase { |
} |
static DartClass makeInterface(String name, List<DartTypeNode> interfaces, |
- DartTypeNode defaultClass, String... typeParameters) { |
+ DartParameterizedTypeNode defaultClass, String... typeParameters) { |
List<DartTypeParameter> parameterNodes = new ArrayList<DartTypeParameter>(); |
for (String parameter : typeParameters) { |
parameterNodes.add(makeTypeVariable(parameter)); |
@@ -112,6 +113,10 @@ abstract class ResolverTestCase extends TestCase { |
interfaces, members, parameterNodes, defaultClass, true, Modifiers.NONE); |
} |
+ static DartParameterizedTypeNode makeDefault(String name) { |
+ return new DartParameterizedTypeNode(new DartIdentifier(name), null); |
+ } |
+ |
private static DartTypeParameter makeTypeVariable(String name) { |
return new DartTypeParameter(new DartIdentifier(name), null); |
} |