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

Unified Diff: lib/compiler/implementation/enqueue.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
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/js/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index 0e97273d4f827585537d6668d78255c2602422ba..da3f90833c6f22e3dd398d28d6dddee44e1e643f 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -209,7 +209,7 @@ class Enqueuer {
cls.ensureResolved(compiler);
for (Link<DartType> supertypes = cls.allSupertypesAndSelf;
- !supertypes.isEmpty(); supertypes = supertypes.tail) {
+ !supertypes.isEmpty; supertypes = supertypes.tail) {
cls = supertypes.head.element;
if (seenClasses.contains(cls)) continue;
seenClasses.add(cls);
@@ -278,7 +278,7 @@ class Enqueuer {
Link<Element> members = instanceMembersByName[memberName];
if (members != null) {
LinkBuilder<Element> remaining = new LinkBuilder<Element>();
- for (; !members.isEmpty(); members = members.tail) {
+ for (; !members.isEmpty; members = members.tail) {
if (!f(members.head)) remaining.addLast(members.head);
}
instanceMembersByName[memberName] = remaining.toLink();
@@ -355,7 +355,7 @@ class Enqueuer {
}
void forEach(f(WorkItem work)) {
- while (!queue.isEmpty()) {
+ while (!queue.isEmpty) {
f(queue.removeLast()); // TODO(kasperl): Why isn't this removeFirst?
}
}
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698