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

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

Issue 11878043: Start adding support for mixin application syntax. We now parse the typedef variant of mixin applic… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/unparser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
index 69c537530a28c17a1d8aa2e97dbde947165d550a..43c5fbbd95347e8eae4938e9abc9667e13d06fdb 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
@@ -81,6 +81,16 @@ class Unparser implements Visitor {
unparseClassWithBody(node, node.body.nodes);
}
+ visitMixinApplication(MixinApplication node) {
+ if (!node.modifiers.nodes.isEmpty) {
+ visit(node.modifiers);
+ sb.add(' ');
+ }
+ visit(node.superclass);
+ sb.add(' with ');
+ visit(node.mixins);
+ }
+
visitConditional(Conditional node) {
visit(node.condition);
add(node.questionToken.value);

Powered by Google App Engine
This is Rietveld 408576698