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

Unified Diff: test/splitting/function_arguments.stmt

Issue 1258203006: Handle function arguments inside function calls. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Reformat self. Created 5 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
« no previous file with comments | « test/regression/0300/0366.stmt ('k') | test/splitting/mixed.stmt » ('j') | 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 3da9e718b3f2adde1a17e554153ab04716d5903d..89c09563b54703a651804d73f69d70fd29db60a6 100644
--- a/test/splitting/function_arguments.stmt
+++ b/test/splitting/function_arguments.stmt
@@ -137,34 +137,30 @@ longFunctionName(() {
}, b: () {
;
});
->>> don't nest because of nested 1-arg fn
+>>> do not nest because of nested 1-arg fn
outer(inner(() {body;}));
<<<
outer(inner(() {
body;
}));
->>> do nest because of nested many-arg fn
+>>> do not nest because of nested many-arg fn
outer(argument, inner(() {body;}));
<<<
-outer(
- argument,
- inner(() {
- body;
- }));
->>> don't nest because of nested 1-arg method call
-obj.outer(obj.inner(() {body;}));
+outer(argument, inner(() {
+ body;
+}));
+>>> do not nest because of nested 1-arg method call
+obj.outer(a.b.c.fn(() {body;}));
<<<
-obj.outer(obj.inner(() {
+obj.outer(a.b.c.fn(() {
body;
}));
->>> do nest because of nested many-arg method call
-obj.outer(argument, obj.inner(() {body;}));
+>>> do not nest because of nested many-arg method call
+obj.outer(argument, a.b.c.fn(() {body;}));
<<<
-obj.outer(
- argument,
- obj.inner(() {
- body;
- }));
+obj.outer(argument, a.b.c.fn(() {
+ body;
+}));
>>> do not force named args to split on positional function
function(argument, () {;},
named: argument, another: argument);
« no previous file with comments | « test/regression/0300/0366.stmt ('k') | test/splitting/mixed.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698