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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart

Issue 24488004: Implement correct scoping rules for variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index 6dea90437d71fe470488dd037a57663d1598caef..4ac6674a938ea1b18f964344f960d2026cacc228 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -112,7 +112,8 @@ class FunctionBodyRewriter extends CloningVisitor {
builder.addLast(visit(rewriteStatement(statement)));
}
}
- return new Block(rewriteNodeList(statements, builder.toLink()));
+ return new Block(rewriteNodeList(statements, builder.toLink()),
+ block.declarations);
}
}

Powered by Google App Engine
This is Rietveld 408576698