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

Unified Diff: lib/compiler/implementation/util/link.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. 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
Index: lib/compiler/implementation/util/link.dart
diff --git a/lib/compiler/implementation/util/link.dart b/lib/compiler/implementation/util/link.dart
index 1029363bbdca4d9b1874b0dd95f2246d26cb75c9..eab6b96096cd50f7108d25bef253e537fabfd7df 100644
--- a/lib/compiler/implementation/util/link.dart
+++ b/lib/compiler/implementation/util/link.dart
@@ -39,12 +39,12 @@ class Link<T> implements Iterable<T> {
List toList() => new List<T>(0);
- bool isEmpty() => true;
+ bool get isEmpty => true;
Link<T> reverse() => this;
Link<T> reversePrependAll(Link<T> from) {
- if (from.isEmpty()) return this;
+ if (from.isEmpty) return this;
return this.prepend(from.head).reversePrependAll(from.tail);
}
@@ -52,7 +52,7 @@ class Link<T> implements Iterable<T> {
bool operator ==(other) {
if (other is !Link<T>) return false;
- return other.isEmpty();
+ return other.isEmpty;
}
String toString() => "[]";
« no previous file with comments | « lib/compiler/implementation/universe/universe.dart ('k') | lib/compiler/implementation/util/link_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698