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

Unified Diff: test/splitting/lists.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/arguments.stmt ('k') | test/splitting/maps.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/lists.stmt
diff --git a/test/splitting/lists.stmt b/test/splitting/lists.stmt
index e92600f54b35438e2deadeef60da634d006f7547..86698f640faecc6f334a56c24dea23fe037c2aeb 100644
--- a/test/splitting/lists.stmt
+++ b/test/splitting/lists.stmt
@@ -73,11 +73,13 @@
[1,2,3,4];
<<<
[1, 2, 3, 4];
->>> dangling comma
+>>> trailing comma forces split
[1 , ];
<<<
-[1,];
->>> dangling comma multiline
+[
+ 1,
+];
+>>> trailing comma multiline
[first, second, third, fourth, fifth, sixth , ];
<<<
[
« no previous file with comments | « test/splitting/arguments.stmt ('k') | test/splitting/maps.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698