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

Unified Diff: pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused variable. Created 8 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
« no previous file with comments | « pkg/dartdoc/lib/mirrors_util.dart ('k') | pkg/unittest/core_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
diff --git a/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart b/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
index 37eed486e7ae7b7923ffc038ec9b0d0ba1859286..e8f739a25e20b02ac68022c9edc5be65fb72702d 100644
--- a/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
+++ b/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
@@ -1059,12 +1059,12 @@ class Dart2JsInterfaceTypeMirror extends Dart2JsTypeElementMirror
}
var thisTypeArguments = typeArguments.iterator();
var otherTypeArguments = other.typeArguments.iterator();
- while (thisTypeArguments.hasNext() && otherTypeArguments.hasNext()) {
+ while (thisTypeArguments.hasNext && otherTypeArguments.hasNext) {
if (thisTypeArguments.next() != otherTypeArguments.next()) {
return false;
}
}
- return !thisTypeArguments.hasNext() && !otherTypeArguments.hasNext();
+ return !thisTypeArguments.hasNext && !otherTypeArguments.hasNext;
}
}
« no previous file with comments | « pkg/dartdoc/lib/mirrors_util.dart ('k') | pkg/unittest/core_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698