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

Unified Diff: pkg/analyzer/lib/src/services/formatter_impl.dart

Issue 144743003: Remove workaround for missing abstract keyword for ClassTypeAliases (dartbug.com/15912). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « no previous file | pkg/analyzer/test/services/data/cu_tests.data » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/services/formatter_impl.dart
===================================================================
--- pkg/analyzer/lib/src/services/formatter_impl.dart (revision 32084)
+++ pkg/analyzer/lib/src/services/formatter_impl.dart (working copy)
@@ -531,14 +531,7 @@
visitClassTypeAlias(ClassTypeAlias node) {
preserveLeadingNewlines();
visitNodes(node.metadata, followedBy: newlines);
- //TODO(pquitslund): the following _should_ work (dartbug.com/15912)
- //modifier(node.abstractKeyword);
- // ... in the meantime we use this workaround
- var prev = node.keyword.previous;
- if (prev is KeywordToken && prev.keyword == Keyword.ABSTRACT) {
- token(prev);
- space();
- }
+ modifier(node.abstractKeyword);
token(node.keyword);
space();
visit(node.name);
« no previous file with comments | « no previous file | pkg/analyzer/test/services/data/cu_tests.data » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698