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

Unified Diff: test/splitting/arguments.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/regression/other/pub.stmt ('k') | test/splitting/lists.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/arguments.stmt
diff --git a/test/splitting/arguments.stmt b/test/splitting/arguments.stmt
index 9ca049da8bf7528499432dfe9bea77a6e2584f84..398b97479e6d9525b706add31ebf22fea2b1e21e 100644
--- a/test/splitting/arguments.stmt
+++ b/test/splitting/arguments.stmt
@@ -201,13 +201,17 @@ function(
;
});
>>> trailing comma
-functionn(argument,argument ,argument , );
+fn(argument,argument ,argument , );
<<<
-functionn(
- argument, argument, argument,);
+fn(
+ argument,
+ argument,
+ argument,
+);
>>> trailing comma in named argument list
-function(named: argument,another:argument, );
+fn(named: argument,another:argument, );
<<<
-function(
- named: argument,
- another: argument,);
+fn(
+ named: argument,
+ another: argument,
+);
« no previous file with comments | « test/regression/other/pub.stmt ('k') | test/splitting/lists.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698