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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/regression/0400/0478.stmt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/function_arguments.stmt
diff --git a/test/splitting/function_arguments.stmt b/test/splitting/function_arguments.stmt
index 89c09563b54703a651804d73f69d70fd29db60a6..b7be6ef255a2330733c12ba327508c673461bcc9 100644
--- a/test/splitting/function_arguments.stmt
+++ b/test/splitting/function_arguments.stmt
@@ -178,4 +178,26 @@ longFunction(argument, argument,
}, () {
;
}, argument, argument, argument,
- argument, argument);
+ argument, argument);
+>>> all named args with leading non-function forces functions to indent
+longFunction(a: argument, b: () {;}, c: () {;});
+<<<
+longFunction(
+ a: argument,
+ b: () {
+ ;
+ },
+ c: () {
+ ;
+ });
+>>> all named args with trailing non-function forces functions to indent
+longFunction(a: () {;}, b: () {;}, c: argument);
+<<<
+longFunction(
+ a: () {
+ ;
+ },
+ b: () {
+ ;
+ },
+ c: argument);
« 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