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

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

Issue 1591463002: Indent functions in named argument lists with non-functions. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 4 years, 11 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/0400/0478.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 do not force nesting 2 >>> args before and after function do not force nesting
3 method(first,() {fn;},third); 3 method(first,() {fn;},third);
4 <<< 4 <<<
5 method(first, () { 5 method(first, () {
6 fn; 6 fn;
7 }, third); 7 }, third);
8 >>> nothing but function args does not nest 8 >>> nothing but function args does not nest
9 longFunctionName(() {;}, () {;}, () {;}); 9 longFunctionName(() {;}, () {;}, () {;});
10 <<< 10 <<<
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 >>> args before and after functions split independently 171 >>> args before and after functions split independently
172 longFunction(argument, argument, argument, argument, argument, 172 longFunction(argument, argument, argument, argument, argument,
173 () {;}, () {;}, argument, argument, argument, argument, argument); 173 () {;}, () {;}, argument, argument, argument, argument, argument);
174 <<< 174 <<<
175 longFunction(argument, argument, 175 longFunction(argument, argument,
176 argument, argument, argument, () { 176 argument, argument, argument, () {
177 ; 177 ;
178 }, () { 178 }, () {
179 ; 179 ;
180 }, argument, argument, argument, 180 }, argument, argument, argument,
181 argument, argument); 181 argument, argument);
182 >>> all named args with leading non-function forces functions to indent
183 longFunction(a: argument, b: () {;}, c: () {;});
184 <<<
185 longFunction(
186 a: argument,
187 b: () {
188 ;
189 },
190 c: () {
191 ;
192 });
193 >>> all named args with trailing non-function forces functions to indent
194 longFunction(a: () {;}, b: () {;}, c: argument);
195 <<<
196 longFunction(
197 a: () {
198 ;
199 },
200 b: () {
201 ;
202 },
203 c: argument);
OLDNEW
« no previous file with comments | « test/regression/0400/0478.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698