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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/TestTypeProvider.java

Issue 913623002: Partial backport of analyzer async/await fixes to Java. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status files Created 5 years, 10 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: 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");

Powered by Google App Engine
This is Rietveld 408576698