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

Unified 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. 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/189.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 cc8d8c6f0de5ed25313c47de50f6e1b7427593e1..450b53a183411c37f1b1bbd8c4d0984b33aeb073 100644
--- a/test/splitting/function_arguments.stmt
+++ b/test/splitting/function_arguments.stmt
@@ -167,4 +167,15 @@ obj.outer(
argument,
obj.inner(() {
body;
- }));
+ }));
+>>> force named args to split on positional function
+function(argument, () {;},
+ named: argument, another: argument);
+<<<
+function(
+ argument,
+ () {
+ ;
+ },
+ named: argument,
+ another: argument);
« no previous file with comments | « test/regression/189.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698