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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
index acff12a5627e9bea6e2d0ac657889110cf0ffad7..269410e23e35a799f637281fd3484ddfe95e5f53 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
@@ -4,6 +4,7 @@
library mirrors_dart2js;
+import 'dart:async';
import 'dart:io';
import 'dart:uri';
@@ -1304,14 +1305,15 @@ class Dart2JsInterfaceTypeMirror extends Dart2JsTypeElementMirror
if (originalDeclaration != other.originalDeclaration) {
return false;
}
- var thisTypeArguments = typeArguments.iterator();
- var otherTypeArguments = other.typeArguments.iterator();
- while (thisTypeArguments.hasNext && otherTypeArguments.hasNext) {
- if (thisTypeArguments.next() != otherTypeArguments.next()) {
+ var thisTypeArguments = typeArguments.iterator;
+ var otherTypeArguments = other.typeArguments.iterator;
+ while (thisTypeArguments.moveNext()) {
+ if (!otherTypeArguments.moveNext()) return false;
+ if (thisTypeArguments.current != otherTypeArguments.current) {
return false;
}
}
- return !thisTypeArguments.hasNext && !otherTypeArguments.hasNext;
+ return !otherTypeArguments.moveNext();
}
}
@@ -1801,4 +1803,4 @@ class Dart2JsConstructedConstantMirror extends Dart2JsConstantMirror {
}
return super.getField(fieldName);
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698