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

Unified Diff: frog/leg/tree/unparser.dart

Issue 9502002: Add FunctionDeclaration node. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: frog/leg/tree/unparser.dart
diff --git a/frog/leg/tree/unparser.dart b/frog/leg/tree/unparser.dart
index e5ffc7ffa319011fdeee3be6ccd52db0d0e90abf..6c87aef22e94af3ec69739afe5266efe61ac1989 100644
--- a/frog/leg/tree/unparser.dart
+++ b/frog/leg/tree/unparser.dart
@@ -75,6 +75,10 @@ class Unparser implements Visitor {
visit(node.body);
}
+ visitFunctionDeclaration(FunctionDeclaration node) {
+ visit(node.function);
+ }
+
visitFunctionExpression(FunctionExpression node) {
if (node.returnType !== null) {
visit(node.returnType);
« no previous file with comments | « frog/leg/tree/nodes.dart ('k') | frog/leg/tree/visitors.dart » ('j') | frog/leg/typechecker.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698