Chromium Code Reviews| 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); |
| + // async[*] |
|
Paul Berry
2015/02/05 20:49:02
The keyword could also be "sync" so you might want
pquitslund
2015/02/05 21:20:12
Good point. Done!
|
| + 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); |