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

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

Issue 1328303002: fix implicit_scope_test and builtin_identifier_test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format 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
« no previous file with comments | « lib/src/codegen/js_names.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index 5f099872a7879902bf3b35150a7efaa97883c182..9c64f921ac63375a0ade13ca40505c166204935e 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -278,7 +278,11 @@ abstract class Statement extends Node {
class Block extends Statement {
final List<Statement> statements;
- Block(this.statements) {
+
+ /// True to preserve this [Block] for scoping reasons.
+ final bool isScope;
+
+ Block(this.statements, {this.isScope: false}) {
assert(!statements.any((s) => s is! Statement));
}
Block.empty() : this.statements = <Statement>[];
« no previous file with comments | « lib/src/codegen/js_names.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698