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

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

Issue 884513002: Support for 'async' in the old formatter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
diff --git a/pkg/analyzer/lib/src/services/formatter_impl.dart b/pkg/analyzer/lib/src/services/formatter_impl.dart
index 8cc329d6d553d49483834f2abbe3fa0d4575c340..dcfb34a2294787350d29441ad4d14a92728300bc 100644
--- a/pkg/analyzer/lib/src/services/formatter_impl.dart
+++ b/pkg/analyzer/lib/src/services/formatter_impl.dart
@@ -507,6 +507,7 @@ class SourceVisitor implements AstVisitor {
}
visitBlockFunctionBody(BlockFunctionBody node) {
+ token(node.keyword, followedBy: nonBreakingSpace);
visit(node.block);
}
@@ -782,6 +783,7 @@ class SourceVisitor implements AstVisitor {
visitExpressionFunctionBody(ExpressionFunctionBody node) {
int weight = lastSpaceWeight++;
+ token(node.keyword, followedBy: nonBreakingSpace);
token(node.functionDefinition);
levelSpace(weight);
visit(node.expression);
« 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