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

Side by Side 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, 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
« no previous file with comments | « test/regression/other/pub.stmt ('k') | test/splitting/lists.stmt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 40 columns | 1 40 columns |
2 >>> many arguments 2 >>> many arguments
3 method(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, 3 method(first, second, third, fourth, fifth, sixth, seventh, eighth, ninth,
4 tenth, eleventh, twelfth); 4 tenth, eleventh, twelfth);
5 <<< 5 <<<
6 method( 6 method(
7 first, 7 first,
8 second, 8 second,
9 third, 9 third,
10 fourth, 10 fourth,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 ], 194 ],
195 argument, 195 argument,
196 { 196 {
197 'key': value, 197 'key': value,
198 'other key': value, 198 'other key': value,
199 'third key': value 199 'third key': value
200 }, () { 200 }, () {
201 ; 201 ;
202 }); 202 });
203 >>> trailing comma 203 >>> trailing comma
204 functionn(argument,argument ,argument , ); 204 fn(argument,argument ,argument , );
205 <<< 205 <<<
206 functionn( 206 fn(
207 argument, argument, argument,); 207 argument,
208 argument,
209 argument,
210 );
208 >>> trailing comma in named argument list 211 >>> trailing comma in named argument list
209 function(named: argument,another:argument, ); 212 fn(named: argument,another:argument, );
210 <<< 213 <<<
211 function( 214 fn(
212 named: argument, 215 named: argument,
213 another: argument,); 216 another: argument,
217 );
OLDNEW
« 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