| Index: pkg/analyzer/lib/src/services/formatter_impl.dart
|
| ===================================================================
|
| --- pkg/analyzer/lib/src/services/formatter_impl.dart (revision 43520)
|
| +++ pkg/analyzer/lib/src/services/formatter_impl.dart (working copy)
|
| @@ -507,7 +507,13 @@
|
| }
|
|
|
| visitBlockFunctionBody(BlockFunctionBody node) {
|
| - token(node.keyword, followedBy: nonBreakingSpace);
|
| + // sync[*] or async[*]
|
| + token(node.keyword);
|
| + token(node.star);
|
| + if (node.keyword != null) {
|
| + nonBreakingSpace();
|
| + }
|
| +
|
| visit(node.block);
|
| }
|
|
|
| @@ -836,6 +842,7 @@
|
| }
|
|
|
| visitForEachStatement(ForEachStatement node) {
|
| + token(node.awaitKeyword, followedBy: nonBreakingSpace);
|
| token(node.forKeyword);
|
| space();
|
| token(node.leftParenthesis);
|
|
|