Chromium Code Reviews

Side by Side Diff: test/splitting/function_arguments.stmt

Issue 1183633004: Harden named arguments if a hard split occurs in the positional ones. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update changelog. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « test/regression/189.stmt ('k') | no next file » | 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 >>> args before and after function forces nesting 2 >>> args before and after function forces nesting
3 method(first,() {fn;},third); 3 method(first,() {fn;},third);
4 <<< 4 <<<
5 method( 5 method(
6 first, 6 first,
7 () { 7 () {
8 fn; 8 fn;
9 }, 9 },
10 third); 10 third);
(...skipping 149 matching lines...)
160 obj.outer(obj.inner(() { 160 obj.outer(obj.inner(() {
161 body; 161 body;
162 })); 162 }));
163 >>> do nest because of nested many-arg method call 163 >>> do nest because of nested many-arg method call
164 obj.outer(argument, obj.inner(() {body;})); 164 obj.outer(argument, obj.inner(() {body;}));
165 <<< 165 <<<
166 obj.outer( 166 obj.outer(
167 argument, 167 argument,
168 obj.inner(() { 168 obj.inner(() {
169 body; 169 body;
170 })); 170 }));
171 >>> force named args to split on positional function
172 function(argument, () {;},
173 named: argument, another: argument);
174 <<<
175 function(
176 argument,
177 () {
178 ;
179 },
180 named: argument,
181 another: argument);
OLDNEW
« no previous file with comments | « test/regression/189.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine