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

Unified Diff: pkg/unittest/core_matchers.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/src/mirrors/dart2js_mirror.dart ('k') | pkg/unittest/mock.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/core_matchers.dart
diff --git a/pkg/unittest/core_matchers.dart b/pkg/unittest/core_matchers.dart
index 9d9d17237d1d91e40d574b2b9015f67fb592951f..e9278b0070847c4dfbf379f1731b4bd8656a9ffd 100644
--- a/pkg/unittest/core_matchers.dart
+++ b/pkg/unittest/core_matchers.dart
@@ -102,8 +102,8 @@ class _DeepMatcher extends BaseMatcher {
var position = 0;
String reason = null;
while (reason == null) {
- if (expectedIterator.hasNext()) {
- if (actualIterator.hasNext()) {
+ if (expectedIterator.hasNext) {
+ if (actualIterator.hasNext) {
Description r = matcher(expectedIterator.next(),
actualIterator.next(),
'mismatch at position ${position}',
@@ -113,7 +113,7 @@ class _DeepMatcher extends BaseMatcher {
} else {
reason = 'shorter than expected';
}
- } else if (actualIterator.hasNext()) {
+ } else if (actualIterator.hasNext) {
reason = 'longer than expected';
} else {
return null;
« no previous file with comments | « pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart ('k') | pkg/unittest/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698