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

Unified Diff: packages/dart_style/test/splitting/function_arguments.stmt

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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
Index: packages/dart_style/test/splitting/function_arguments.stmt
diff --git a/packages/dart_style/test/splitting/function_arguments.stmt b/packages/dart_style/test/splitting/function_arguments.stmt
index 89c09563b54703a651804d73f69d70fd29db60a6..b7be6ef255a2330733c12ba327508c673461bcc9 100644
--- a/packages/dart_style/test/splitting/function_arguments.stmt
+++ b/packages/dart_style/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 | « packages/dart_style/test/splitting/expressions.stmt ('k') | packages/dart_style/test/splitting/generic_method_arguments.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698