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

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

Issue 11953048: Support 'implements' clause on typedef mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. 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 4a0e6e74903cba6791ec3fde71abea2db436a650..eee95d4e9a2b79e05a5937d39f173294a7452c7a 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
@@ -82,10 +82,6 @@ class Unparser implements Visitor {
}
visitMixinApplication(MixinApplication node) {
- if (!node.modifiers.nodes.isEmpty) {
- visit(node.modifiers);
- sb.add(' ');
- }
visit(node.superclass);
sb.add(' with ');
visit(node.mixins);
@@ -98,7 +94,15 @@ class Unparser implements Visitor {
visit(node.typeParameters);
}
sb.add(' = ');
+ if (!node.modifiers.nodes.isEmpty) {
+ visit(node.modifiers);
+ sb.add(' ');
+ }
visit(node.mixinApplication);
+ if (node.interfaces != null) {
+ sb.add(' implements ');
+ visit(node.interfaces);
+ }
sb.add(';');
}

Powered by Google App Engine
This is Rietveld 408576698