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

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

Issue 10834374: Add a field to ClassNode that holds a NodeList of its members. (Closed) Base URL: http://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
Index: lib/compiler/implementation/tree/unparser.dart
===================================================================
--- lib/compiler/implementation/tree/unparser.dart (revision 10864)
+++ lib/compiler/implementation/tree/unparser.dart (working copy)
@@ -72,6 +72,15 @@
sb.add(' ');
}
sb.add('{\n');
+ NodeList body = node.body;
+ if (body != null) {
+ String indent = " ";
+ for (Node node in body) {
ahe 2012/08/17 06:43:37 Please use the form of for as you see on line 223.
messick 2012/08/17 17:16:40 Done.
+ sb.add(indent);
+ visit(node);
+ sb.add("\n");
+ }
+ }
sb.add('}\n');
}
« lib/compiler/implementation/tree/nodes.dart ('K') | « lib/compiler/implementation/tree/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698