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

Unified Diff: packages/dart_style/test/splitting/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/arguments.stmt
diff --git a/packages/dart_style/test/splitting/arguments.stmt b/packages/dart_style/test/splitting/arguments.stmt
index 6a292dc097a32fac0aaad5f66c21105b8af85e5f..f9ecb7cbab0202df35c536ef70bd38d6d7ed7f02 100644
--- a/packages/dart_style/test/splitting/arguments.stmt
+++ b/packages/dart_style/test/splitting/arguments.stmt
@@ -64,6 +64,12 @@ foo(inner(veryLongArgument, veryLongArgument));
<<<
foo(inner(veryLongArgument,
veryLongArgument));
+>>> do force named single-argument list to split if argument splits
+foo(named:inner(veryLongArgument, veryLongArgument));
+<<<
+foo(
+ named: inner(veryLongArgument,
+ veryLongArgument));
>>> do not split empty argument list
foo___________________________________();
<<<
@@ -194,4 +200,19 @@ function(
'third key': value
}, () {
;
-});
+});
+>>> trailing comma
+fn(argument,argument ,argument , );
+<<<
+fn(
+ argument,
+ argument,
+ argument,
+);
+>>> trailing comma in named argument list
+fn(named: argument,another:argument, );
+<<<
+fn(
+ named: argument,
+ another: argument,
+);
« 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