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

Unified Diff: lib/src/js/nodes.dart

Issue 1305413006: fix readability regressions from previous block-scope CL (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 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/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index 9c64f921ac63375a0ade13ca40505c166204935e..2f32feb0cfd8faa544e98ce718c8b92ea127956e 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -285,7 +285,7 @@ class Block extends Statement {
Block(this.statements, {this.isScope: false}) {
assert(!statements.any((s) => s is! Statement));
}
- Block.empty() : this.statements = <Statement>[];
+ Block.empty() : statements = <Statement>[], isScope = false;
accept(NodeVisitor visitor) => visitor.visitBlock(this);
void visitChildren(NodeVisitor visitor) {

Powered by Google App Engine
This is Rietveld 408576698