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

Unified Diff: test/whitespace/expressions.stmt

Issue 2181743002: Always split collections and argument lists with trailing commas. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Revise. Created 4 years, 5 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 | « test/splitting/maps.stmt ('k') | tool/node_format_service.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/whitespace/expressions.stmt
diff --git a/test/whitespace/expressions.stmt b/test/whitespace/expressions.stmt
index cf241ebd9950675bce40babf4b6b8bee221b5566..310e7bdcb0611935f281498ff4b62afa56035d45 100644
--- a/test/whitespace/expressions.stmt
+++ b/test/whitespace/expressions.stmt
@@ -118,12 +118,20 @@ variableName ??= argument;
>>> trailing comma in single argument list
function(argument , );
<<<
-function(argument,);
+function(
+ argument,
+);
>>> trailing comma in argument list
function(argument,argument , );
<<<
-function(argument, argument,);
+function(
+ argument,
+ argument,
+);
>>> trailing comma in named argument list
function(named: arg,another:arg, );
<<<
-function(named: arg, another: arg,);
+function(
+ named: arg,
+ another: arg,
+);
« no previous file with comments | « test/splitting/maps.stmt ('k') | tool/node_format_service.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698