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

Side by Side Diff: packages/dart_style/test/splitting/maps.stmt

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 40 columns | 1 40 columns |
2 >>> empty map 2 >>> empty map
3 var m = { }; 3 var m = { };
4 <<< 4 <<<
5 var m = {}; 5 var m = {};
6 >>> exactly 40 characters 6 >>> exactly 40 characters
7 var m = {first: second, third: forth__}; 7 var m = {first: second, third: forth__};
8 <<< 8 <<<
9 var m = {first: second, third: forth__}; 9 var m = {first: second, third: forth__};
10 >>> 10 >>>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 first: one /* bang */, 67 first: one /* bang */,
68 second: two 68 second: two
69 }; 69 };
70 >>> const 70 >>> const
71 var map = const {"foo": "bar", "fuz": null}; 71 var map = const {"foo": "bar", "fuz": null};
72 <<< 72 <<<
73 var map = const { 73 var map = const {
74 "foo": "bar", 74 "foo": "bar",
75 "fuz": null 75 "fuz": null
76 }; 76 };
77 >>> dangling comma 77 >>> trailing comma forces split
78 var map = {"foo": "bar" , }; 78 var map = {"foo": "bar" , };
79 <<< 79 <<<
80 var map = {"foo": "bar",}; 80 var map = {
81 >>> dangling comma multiline 81 "foo": "bar",
82 };
83 >>> trailing comma multiline
82 var map = {"foo": "bar", "fuzzy": null , }; 84 var map = {"foo": "bar", "fuzzy": null , };
83 <<< 85 <<<
84 var map = { 86 var map = {
85 "foo": "bar", 87 "foo": "bar",
86 "fuzzy": null, 88 "fuzzy": null,
87 }; 89 };
88 >>> preserve newlines in maps containing a line comment 90 >>> preserve newlines in maps containing a line comment
89 var map = { 91 var map = {
90 // yeah 92 // yeah
91 a:b,c:d, 93 a:b,c:d,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 >>> ignore newlines between keys and values 153 >>> ignore newlines between keys and values
152 var map = {// comment 154 var map = {// comment
153 a: 155 a:
154 value 156 value
155 }; 157 };
156 <<< 158 <<<
157 var map = { 159 var map = {
158 // comment 160 // comment
159 a: value 161 a: value
160 }; 162 };
OLDNEW
« no previous file with comments | « packages/dart_style/test/splitting/lists.stmt ('k') | packages/dart_style/test/splitting/members.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698