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

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

Issue 698563005: Support parsing of enums in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add unparser test. Created 6 years, 1 month 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: sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart b/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
index 93a3212e0a0d4c00a9a2469b13f476b39affe051..c8bf5e087d41a75da24bcdd20ee8c2a70a1ff0f4 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
@@ -172,6 +172,10 @@ class PrettyPrinter extends Indentation implements Visitor {
visitNodeWithChildren(node, "EmptyStatement");
}
+ visitEnum(Enum node) {
+ visitNodeWithChildren(node, "Enum");
+ }
+
visitExpressionStatement(ExpressionStatement node) {
visitNodeWithChildren(node, "ExpressionStatement");
}

Powered by Google App Engine
This is Rietveld 408576698