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

Unified Diff: frog/leg/ssa/builder.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/scanner/parser.dart ('k') | frog/leg/ssa/closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/builder.dart
diff --git a/frog/leg/ssa/builder.dart b/frog/leg/ssa/builder.dart
index b9817721837211836c1890a4e332b54dd072525d..1e8ebff3c84315af0e4f5ff5ae1081406657bf80 100644
--- a/frog/leg/ssa/builder.dart
+++ b/frog/leg/ssa/builder.dart
@@ -1116,6 +1116,11 @@ class SsaBuilder implements Visitor {
push(new HForeignNew(closureClassElement, capturedVariables));
}
+ visitFunctionDeclaration(FunctionDeclaration node) {
+ visit(node.function);
+ localsHandler.updateLocal(elements[node], pop());
+ }
+
visitIdentifier(Identifier node) {
if (node.isThis()) {
stack.add(localsHandler.readThis());
« no previous file with comments | « frog/leg/scanner/parser.dart ('k') | frog/leg/ssa/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698