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

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

Issue 155703004: Support parameter metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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: 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 516cc7aa56f04a9f41ae724cb7d37c0f00a78620..03c48e5052df4c06645191226d6649e00b964245 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
@@ -410,6 +410,14 @@ class PrettyPrinter implements Visitor {
visitNodeWithChildren(node, "While");
}
+ visitMetadata(Metadata node) {
+ openNode(node, "Metadata", {
+ "token": node.token
+ });
+ visitChildNode(node.expression, "expression");
+ closeNode();
+ }
+
visitNode(Node node) {
unimplemented('visitNode', node: node);
}

Powered by Google App Engine
This is Rietveld 408576698