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

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

Issue 10792013: Enhance prettyprint for TypeAnnotation (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 2653b0be106264b1fe3c19ff24775178da953814..7ba611d12324982e2346510855c7b4c5c6d533f3 100644
--- a/lib/compiler/implementation/tree/prettyprint.dart
+++ b/lib/compiler/implementation/tree/prettyprint.dart
@@ -345,7 +345,13 @@ class PrettyPrinter implements Visitor {
}
visitTypeAnnotation(TypeAnnotation node) {
- visitNodeWithChildren(node, "TypeAnnotation");
+ openNode("TypeAnnotation", {
+ "beginToken" : tokenToStringOrNull(node.getBeginToken()),
+ "endToken" : tokenToStringOrNull(node.getEndToken())
+ });
+ visitWithPrefix(node.typeName, "typeName:");
+ visitWithPrefix(node.typeArguments, "typeArguments:");
+ closeNode("TypeAnnotation");
}
visitTypedef(Typedef 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