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

Unified Diff: lib/compiler/implementation/js/printer.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/enqueue.dart ('k') | lib/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/js/printer.dart
diff --git a/lib/compiler/implementation/js/printer.dart b/lib/compiler/implementation/js/printer.dart
index 02982ff318ba1a638d75048dd44de75072780e6b..17f25c4325efe43348bc1f04ab72685e942541f1 100644
--- a/lib/compiler/implementation/js/printer.dart
+++ b/lib/compiler/implementation/js/printer.dart
@@ -331,7 +331,7 @@ class Printer implements NodeVisitor {
visitNestedExpression(node.expression, EXPRESSION,
newInForInit: false, newAtStatementBegin: false);
outLn(":");
- if (!node.body.statements.isEmpty()) {
+ if (!node.body.statements.isEmpty) {
indentLevel++;
blockOutWithoutBraces(node.body);
indentLevel--;
@@ -340,7 +340,7 @@ class Printer implements NodeVisitor {
visitDefault(Default node) {
outIndentLn("default:");
- if (!node.body.statements.isEmpty()) {
+ if (!node.body.statements.isEmpty) {
indentLevel++;
blockOutWithoutBraces(node.body);
indentLevel--;
@@ -945,7 +945,7 @@ class MinifyRenamer implements Namer {
String declareName(String oldName) {
const LETTERS = 52;
const DIGITS = 10;
- if (maps.isEmpty()) return oldName;
+ if (maps.isEmpty) return oldName;
String newName;
int n = nameNumber;
« no previous file with comments | « lib/compiler/implementation/enqueue.dart ('k') | lib/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698