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

Unified Diff: sdk/lib/_internal/compiler/implementation/closure.dart

Issue 422483002: Mix in [TreeElementMixin] only on nodes that need it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/closure.dart
diff --git a/sdk/lib/_internal/compiler/implementation/closure.dart b/sdk/lib/_internal/compiler/implementation/closure.dart
index 166136668d9cd862ce3e9fc1e48c8c947fb32720..2dd85eed8faad769aade9f61a90d983f6cda8557 100644
--- a/sdk/lib/_internal/compiler/implementation/closure.dart
+++ b/sdk/lib/_internal/compiler/implementation/closure.dart
@@ -1000,12 +1000,6 @@ class ClosureTranslator extends Visitor {
});
}
- visitFunctionDeclaration(FunctionDeclaration node) {
floitsch 2014/07/25 12:30:08 We need to declare the local in the current scope
Johnni Winther 2014/08/04 06:59:09 Reinserting though we don't need it. Fixing this i
- node.visitChildren(this);
- LocalFunctionElement localFunction = elements[node];
- declareLocal(localFunction);
- }
-
visitTryStatement(TryStatement node) {
// TODO(ngeoffray): implement finer grain state.
bool oldInTryStatement = inTryStatement;

Powered by Google App Engine
This is Rietveld 408576698