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

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

Issue 9109015: AST nodes for function-typed parameters. (Closed) Base URL: ssh://aaricia.aar/home/ahe/Dart/all/dart.googlecode.com.git@master
Patch Set: Created 8 years, 12 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: dart/frog/leg/tree/unparser.dart
diff --git a/dart/frog/leg/tree/unparser.dart b/dart/frog/leg/tree/unparser.dart
index 77cecc78019fabd5c70dad12de4251c81a5355ff..6323f0257a1733d0acdb036d912feb8cdb52ca48 100644
--- a/dart/frog/leg/tree/unparser.dart
+++ b/dart/frog/leg/tree/unparser.dart
@@ -152,7 +152,7 @@ class Unparser implements Visitor {
sb.add(' ');
visit(node.expression);
}
- add(node.endToken.value);
+ if (node.endToken !== null) add(node.endToken.value);
ngeoffray 2012/01/06 08:20:46 Isn't the endToken the semi-colon? How can it be n
ahe 2012/01/06 11:00:03 For a function expression: print((() => 42)());
}

Powered by Google App Engine
This is Rietveld 408576698