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

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

Issue 27300003: Change "typedef" to "class" in core library and related tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update some dart2js tests and unparser. Created 7 years, 2 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 | « sdk/lib/_collection_dev/list.dart ('k') | sdk/lib/async/stream_controller.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 259d4d010b8408e489c2214b07a9a7e73cc3ebb0..0ca2f98566536b13b4baa647c665e43f1c8e1bf2 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
@@ -84,16 +84,16 @@ class Unparser implements Visitor {
}
visitNamedMixinApplication(NamedMixinApplication node) {
- sb.write('typedef ');
+ if (!node.modifiers.nodes.isEmpty) {
+ visit(node.modifiers);
+ sb.write(' ');
+ }
+ sb.write('class ');
visit(node.name);
if (node.typeParameters != null) {
visit(node.typeParameters);
}
sb.write(' = ');
- if (!node.modifiers.nodes.isEmpty) {
- visit(node.modifiers);
- sb.write(' ');
- }
visit(node.mixinApplication);
if (node.interfaces != null) {
sb.write(' implements ');
« no previous file with comments | « sdk/lib/_collection_dev/list.dart ('k') | sdk/lib/async/stream_controller.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698