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

Side by Side Diff: packages/dart_style/test/splitting/arguments.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 >>> 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 a, 57 a,
58 b, 58 b,
59 inner(veryLongArgument, 59 inner(veryLongArgument,
60 veryLongArgument), 60 veryLongArgument),
61 c); 61 c);
62 >>> do not force single-argument list to split if argument splits 62 >>> do not force single-argument list to split if argument splits
63 foo(inner(veryLongArgument, veryLongArgument)); 63 foo(inner(veryLongArgument, veryLongArgument));
64 <<< 64 <<<
65 foo(inner(veryLongArgument, 65 foo(inner(veryLongArgument,
66 veryLongArgument)); 66 veryLongArgument));
67 >>> do force named single-argument list to split if argument splits
68 foo(named:inner(veryLongArgument, veryLongArgument));
69 <<<
70 foo(
71 named: inner(veryLongArgument,
72 veryLongArgument));
67 >>> do not split empty argument list 73 >>> do not split empty argument list
68 foo___________________________________(); 74 foo___________________________________();
69 <<< 75 <<<
70 foo___________________________________(); 76 foo___________________________________();
71 >>> do split empty argument list if it contains a comment 77 >>> do split empty argument list if it contains a comment
72 foo___________________________________(/* */); 78 foo___________________________________(/* */);
73 <<< 79 <<<
74 foo___________________________________( 80 foo___________________________________(
75 /* */); 81 /* */);
76 >>> keep positional and named on first line 82 >>> keep positional and named on first line
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 element, 193 element,
188 element 194 element
189 ], 195 ],
190 argument, 196 argument,
191 { 197 {
192 'key': value, 198 'key': value,
193 'other key': value, 199 'other key': value,
194 'third key': value 200 'third key': value
195 }, () { 201 }, () {
196 ; 202 ;
197 }); 203 });
204 >>> trailing comma
205 fn(argument,argument ,argument , );
206 <<<
207 fn(
208 argument,
209 argument,
210 argument,
211 );
212 >>> trailing comma in named argument list
213 fn(named: argument,another:argument, );
214 <<<
215 fn(
216 named: argument,
217 another: argument,
218 );
OLDNEW
« no previous file with comments | « packages/dart_style/test/splitting/._strings.stmt ('k') | packages/dart_style/test/splitting/expressions.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698