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

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

Issue 10779031: Enhance ClassNode prettyprint (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/prettyprint.dart
diff --git a/lib/compiler/implementation/tree/prettyprint.dart b/lib/compiler/implementation/tree/prettyprint.dart
index 7ba611d12324982e2346510855c7b4c5c6d533f3..31b272487da592c7b9f4efcaef802d2b21dca816 100644
--- a/lib/compiler/implementation/tree/prettyprint.dart
+++ b/lib/compiler/implementation/tree/prettyprint.dart
@@ -127,7 +127,17 @@ class PrettyPrinter implements Visitor {
}
visitClassNode(ClassNode node) {
- visitNodeWithChildren(node, "ClassNode");
+ openNode("ClassNode", {
+ "beginToken" : tokenToStringOrNull(node.getBeginToken()),
+ "endToken" : tokenToStringOrNull(node.getEndToken()),
+ "extendsKeyword" : tokenToStringOrNull(node.extendsKeyword),
+ });
+ visitWithPrefix(node.name, "name:");
+ visitWithPrefix(node.superclass, "superclass:");
+ visitWithPrefix(node.interfaces, "interfaces:");
+ visitWithPrefix(node.typeParameters, "typeParameters:");
+ visitWithPrefix(node.defaultClause, "defaultClause:");
+ closeNode("ClassNode");
}
visitConditional(Conditional 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