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

Unified Diff: frog/leg/ssa/closure.dart

Issue 9502002: Add FunctionDeclaration node. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files. Created 8 years, 10 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 | « frog/leg/ssa/builder.dart ('k') | frog/leg/tree/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/closure.dart
diff --git a/frog/leg/ssa/closure.dart b/frog/leg/ssa/closure.dart
index 08fca6f28e46907659c1ef73459e2b296004e609..f35ba2b666f1b4935241e436b526ba7b3890d154 100644
--- a/frog/leg/ssa/closure.dart
+++ b/frog/leg/ssa/closure.dart
@@ -396,6 +396,11 @@ class ClosureTranslator extends AbstractVisitor {
}
}
+ visitFunctionDeclaration(FunctionDeclaration node) {
+ node.visitChildren(this);
+ declareLocal(elements[node]);
+ }
+
visitTryStatement(TryStatement node) {
// TODO(ngeoffray): implement finer grain state.
inTryCatchOrFinally = true;
« no previous file with comments | « frog/leg/ssa/builder.dart ('k') | frog/leg/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698