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

Unified Diff: lib/compiler/implementation/dart_backend/backend.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/dart2js.dart ('k') | lib/compiler/implementation/dart_backend/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index 3cd8a32dcd0c2a1500038b3d0fd4626f2932cdf7..32ee597324b73c0fbd6bcee58f3c6aa5dee4798d 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -85,7 +85,7 @@ class FunctionBodyRewriter extends CloningVisitor {
rewiteStatement(Statement statement) {
if (statement is Block) {
Link statements = statement.statements.nodes;
- if (!statements.isEmpty() && statements.tail.isEmpty()) {
+ if (!statements.isEmpty && statements.tail.isEmpty) {
Statement single = statements.head;
bool isDeclaration =
single is VariableDefinitions || single is FunctionDeclaration;
@@ -154,7 +154,7 @@ class DartBackend extends Backend {
}
}
- while (!workQueue.isEmpty()) {
+ while (!workQueue.isEmpty) {
DartType type = workQueue.removeLast();
if (processedTypes.contains(type)) continue;
processedTypes.add(type);
@@ -343,7 +343,7 @@ class DartBackend extends Backend {
for (Element member in classMembers[classElement]) {
if (member.isConstructor()) continue NextClassElement;
}
- if (classElement.constructors.isEmpty()) continue NextClassElement;
+ if (classElement.constructors.isEmpty) continue NextClassElement;
// TODO(antonm): check with AAR team if there is better approach.
// As an idea: provide template as a Dart code---class C { C.name(); }---
« no previous file with comments | « lib/compiler/implementation/dart2js.dart ('k') | lib/compiler/implementation/dart_backend/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698