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

Unified Diff: lib/compiler/implementation/tree_validator.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/unparser.dart ('k') | lib/compiler/implementation/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree_validator.dart
diff --git a/lib/compiler/implementation/tree_validator.dart b/lib/compiler/implementation/tree_validator.dart
index bef2891dceef1d5c6c85593cc8cf74e3c0854b07..5b8a9b06259960e986a35b5423ec6804869b7a79 100644
--- a/lib/compiler/implementation/tree_validator.dart
+++ b/lib/compiler/implementation/tree_validator.dart
@@ -19,7 +19,7 @@ class TreeValidatorTask extends CompilerTask {
final validator = new ValidatorVisitor(report);
tree.accept(new TraversingVisitor(validator));
- return errors.isEmpty();
+ return errors.isEmpty;
}
}
@@ -44,12 +44,12 @@ class ValidatorVisitor extends Visitor {
if (identical(name, '++') || identical(name, '--')) {
expect(node, node.assignmentOperator is Operator);
if (node.isIndex) {
- expect(node.arguments.tail.head, node.arguments.tail.isEmpty());
+ expect(node.arguments.tail.head, node.arguments.tail.isEmpty);
} else {
- expect(node.arguments.head, node.arguments.isEmpty());
+ expect(node.arguments.head, node.arguments.isEmpty);
}
} else {
- expect(node, !node.arguments.isEmpty());
+ expect(node, !node.arguments.isEmpty);
}
}
« no previous file with comments | « lib/compiler/implementation/tree/unparser.dart ('k') | lib/compiler/implementation/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698