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

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

Issue 282453004: Dart2js enum parsing. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Allow trailing comma. Created 6 years, 7 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 | « sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/tree/unparser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
index 632741ccd22fdd9a492d18186f9b6c07a56e5d4c..5dba795ed6f13e5913109ed45c332a07afced17d 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
@@ -73,6 +73,13 @@ class Unparser implements Visitor {
sb.write('}');
}
+ visitEnum(Enum node) {
+ sb.write('enum ');
+ visit(node.name);
+ sb.write(' ');
floitsch 2014/11/04 14:06:51 why don't you need to write the "{" and "}"?
Lasse Reichstein Nielsen 2014/11/06 13:24:51 The NodeList knows about delimiters, '{', '}' and
+ visit(node.names);
+ }
+
visitClassNode(ClassNode node) {
unparseClassWithBody(node, node.body.nodes);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698