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

Unified Diff: lib/compiler/implementation/world.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/util/link_implementation.dart ('k') | lib/core/collection.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/world.dart
diff --git a/lib/compiler/implementation/world.dart b/lib/compiler/implementation/world.dart
index ee91eef1fee3e96d527713295637c6764e548d49..e79b01606d230fe7df7262358a0d57168338d050 100644
--- a/lib/compiler/implementation/world.dart
+++ b/lib/compiler/implementation/world.dart
@@ -40,7 +40,7 @@ class World {
// (3) subclasses of (2) and (3).
void potentiallyAddForRti(ClassElement cls, Function callback) {
- if (cls.typeVariables.isEmpty()) return;
+ if (cls.typeVariables.isEmpty) return;
if (classesNeedingRti.contains(cls)) return;
classesNeedingRti.add(cls);
if (callback != null) {
@@ -56,7 +56,7 @@ class World {
compiler.resolverWorld.isChecks.forEach((DartType type) {
if (type is InterfaceType) {
InterfaceType itf = type;
- if (!itf.arguments.isEmpty()) {
+ if (!itf.arguments.isEmpty) {
potentiallyAddForRti(itf.element, null);
}
}
@@ -64,7 +64,7 @@ class World {
List<ClassElement> worklist =
new List<ClassElement>.from(classesNeedingRti);
- while (!worklist.isEmpty()) {
+ while (!worklist.isEmpty) {
Element e = worklist.removeLast();
Set<Element> dependencies = rtiDependencies[e];
if (dependencies == null) continue;
@@ -189,5 +189,5 @@ class MemberSet {
elements.add(element);
}
- bool isEmpty() => elements.isEmpty();
+ bool get isEmpty => elements.isEmpty;
}
« no previous file with comments | « lib/compiler/implementation/util/link_implementation.dart ('k') | lib/core/collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698