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

Unified Diff: lib/compiler/implementation/tree/unparser.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/tree/prettyprint.dart ('k') | lib/compiler/implementation/tree_validator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index 4bfd890c5a5fbdbdb86340d3c585918e4a0f4175..8ea27965c5dc6dbbd714f3d4304e5734e26edfa3 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -60,7 +60,7 @@ class Unparser implements Visitor {
addToken(node.extendsKeyword);
visit(node.superclass);
}
- if (!node.interfaces.isEmpty()) {
+ if (!node.interfaces.isEmpty) {
sb.add(' ');
visit(node.interfaces);
}
@@ -206,7 +206,7 @@ class Unparser implements Visitor {
visit(node.typeArguments);
visit(node.elements);
// If list is empty, emit space after [] to disambiguate cases like []==[].
- if (node.elements.isEmpty()) sb.add(' ');
+ if (node.elements.isEmpty) sb.add(' ');
}
visitModifiers(Modifiers node) => node.visitChildren(this);
@@ -215,10 +215,10 @@ class Unparser implements Visitor {
* Unparses given NodeList starting from specific node.
*/
unparseNodeListFrom(NodeList node, Link<Node> from) {
- if (from.isEmpty()) return;
+ if (from.isEmpty) return;
String delimiter = (node.delimiter == null) ? "" : "${node.delimiter}";
visit(from.head);
- for (Link link = from.tail; !link.isEmpty(); link = link.tail) {
+ for (Link link = from.tail; !link.isEmpty; link = link.tail) {
sb.add(delimiter);
visit(link.head);
}
« no previous file with comments | « lib/compiler/implementation/tree/prettyprint.dart ('k') | lib/compiler/implementation/tree_validator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698