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

Unified Diff: lib/compiler/implementation/dart_backend/utils.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/dart_backend/utils.dart
diff --git a/lib/compiler/implementation/dart_backend/utils.dart b/lib/compiler/implementation/dart_backend/utils.dart
index 4f56bce14c9baf27cbd9fdfbc2a0898bf3488092..20d506d5fed1d314590370a24660d71a1bc422c2 100644
--- a/lib/compiler/implementation/dart_backend/utils.dart
+++ b/lib/compiler/implementation/dart_backend/utils.dart
@@ -128,11 +128,11 @@ class CloningVisitor implements Visitor<Node> {
// Special case for classes which exist in hierarchy, but not
// in the visitor.
if (node is Prefix) {
- return node.nodes.isEmpty() ?
+ return node.nodes.isEmpty ?
new Prefix() : new Prefix.singleton(visit(node.nodes.head));
}
if (node is Postfix) {
- return node.nodes.isEmpty() ?
+ return node.nodes.isEmpty ?
new Postfix() : new Postfix.singleton(visit(node.nodes.head));
}
LinkBuilder<Node> builder = new LinkBuilder<Node>();
« no previous file with comments | « lib/compiler/implementation/dart_backend/backend.dart ('k') | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698