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

Unified Diff: test/splitting/maps.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/lists.stmt ('k') | test/whitespace/expressions.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/maps.stmt
diff --git a/test/splitting/maps.stmt b/test/splitting/maps.stmt
index 791eaa7d7718a03bd485fe226fd61eccc02e141d..31da5ab7e2345a2821bfa2bc0e9b07b478591d97 100644
--- a/test/splitting/maps.stmt
+++ b/test/splitting/maps.stmt
@@ -74,11 +74,13 @@ var map = const {
"foo": "bar",
"fuz": null
};
->>> dangling comma
+>>> trailing comma forces split
var map = {"foo": "bar" , };
<<<
-var map = {"foo": "bar",};
->>> dangling comma multiline
+var map = {
+ "foo": "bar",
+};
+>>> trailing comma multiline
var map = {"foo": "bar", "fuzzy": null , };
<<<
var map = {
« no previous file with comments | « test/splitting/lists.stmt ('k') | test/whitespace/expressions.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698