Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/TestTypeProvider.java |
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/TestTypeProvider.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/TestTypeProvider.java |
index 0ca09e14bf988272e677d71c8faff94c8b9fc6c0..1ba84892a827e7a58a04c3c0309bb6feb170f6cb 100644 |
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/TestTypeProvider.java |
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/TestTypeProvider.java |
@@ -78,6 +78,11 @@ public class TestTypeProvider implements TypeProvider { |
private InterfaceType intType; |
/** |
+ * The type representing 'Iterable<dynamic>' |
+ */ |
+ private InterfaceType iterableDynamicType; |
+ |
+ /** |
* The type representing the built-in type 'Iterable'. |
*/ |
private InterfaceType iterableType; |
@@ -211,6 +216,15 @@ public class TestTypeProvider implements TypeProvider { |
return intType; |
} |
+ @Override |
+ public InterfaceType getIterableDynamicType() { |
+ if (iterableDynamicType == null) { |
+ iterableDynamicType = getIterableType().substitute(new Type[] {getDynamicType()}); |
+ } |
+ return iterableDynamicType; |
+ } |
+ |
+ @Override |
public InterfaceType getIterableType() { |
if (iterableType == null) { |
ClassElementImpl iterableElement = classElement("Iterable", "E"); |