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

Unified Diff: lib/compiler/implementation/tree/unparser.dart

Issue 10855073: Fix dart2js tests, unparser initializer with closure. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index 3b42912d95228804caaeaf9ae261854c432c1295..31f05145db6491a1af09dd974d8ecd5334ebf87a 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -6,10 +6,12 @@
typedef String Renamer(Node node);
class Unparser implements Visitor {
- final Renamer rename;
+ Renamer rename;
StringBuffer sb;
- Unparser() : this.withRenamer((Node) => null);
+ Unparser() {
+ rename = (Node node) => null;
+ }
Unparser.withRenamer(this.rename);
String unparse(Node node) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698