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

Unified Diff: test/comments/expressions.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 | « lib/src/chunk_builder.dart ('k') | test/regression/189.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/comments/expressions.stmt
diff --git a/test/comments/expressions.stmt b/test/comments/expressions.stmt
index 25920daa15a31ae144aed6230a21e001e6bc1551..2bb2b3ac6ea252e8e248eaa6ae468648d2ee34ee 100644
--- a/test/comments/expressions.stmt
+++ b/test/comments/expressions.stmt
@@ -76,4 +76,13 @@ someFunction(//
{
// comment
1 + 2;
-}
+}
+>>> force named args to split on line comment in positional
+function(argument, //
+ argument, named: argument, another: argument);
+<<<
+function(
+ argument, //
+ argument,
+ named: argument,
+ another: argument);
« no previous file with comments | « lib/src/chunk_builder.dart ('k') | test/regression/189.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698