| Index: packages/dart_style/test/splitting/mixed.stmt
|
| diff --git a/packages/dart_style/test/splitting/mixed.stmt b/packages/dart_style/test/splitting/mixed.stmt
|
| index 0ef02fd935a2615cf5849fa29e3f91ade716c971..33cdba44bf5f5023add63a19a9ba8f422f48079c 100644
|
| --- a/packages/dart_style/test/splitting/mixed.stmt
|
| +++ b/packages/dart_style/test/splitting/mixed.stmt
|
| @@ -54,8 +54,10 @@ callSomeMethod(
|
| .method(argument)
|
| .method(argument)
|
| .method(() {
|
| - body;
|
| - }).another().another()
|
| + body;
|
| + })
|
| + .another()
|
| + .another()
|
| ];
|
| >>> function inside an argument list
|
| function(argument, obj.method(argument).method(argument).method(() {body;}).another().another());
|
| @@ -66,8 +68,10 @@ function(
|
| .method(argument)
|
| .method(argument)
|
| .method(() {
|
| - body;
|
| - }).another().another());
|
| + body;
|
| + })
|
| + .another()
|
| + .another());
|
| >>> unnested function inside nested expression
|
| function(argument, function(() {;}));
|
| <<<
|
| @@ -91,14 +95,15 @@ function(
|
| receiver.firstMethod().next((parameter) => longIdentifier == veryLongIdentifier);
|
| <<<
|
| receiver.firstMethod().next(
|
| - (parameter) => longIdentifier ==
|
| + (parameter) =>
|
| + longIdentifier ==
|
| veryLongIdentifier);
|
| >>> wrap after =>
|
| receiver.firstMethod().next(() => veryveryveryverylongIdentifier == veryLongIdentifier);
|
| <<<
|
| receiver.firstMethod().next(() =>
|
| veryveryveryverylongIdentifier ==
|
| - veryLongIdentifier);
|
| + veryLongIdentifier);
|
| >>> wrap at nested binary operator
|
| receiver.firstMethod().next(longIdentifier == veryLongIdentifier);
|
| <<<
|
| @@ -193,4 +198,16 @@ longIdentifier +
|
| <<<
|
| longIdentifier +
|
| (longIdentifier ? 0 : 1) ==
|
| - identifier;
|
| + identifier;
|
| +>>> normal indent before unsplit binary operators in => body
|
| +veryLongFunction() => extremelyLongArgument + argument;
|
| +<<<
|
| +veryLongFunction() =>
|
| + extremelyLongArgument + argument;
|
| +>>> no extra indent before binary operators in => body
|
| +veryLongFunction() => longArgument + longArgument + longArgument;
|
| +<<<
|
| +veryLongFunction() =>
|
| + longArgument +
|
| + longArgument +
|
| + longArgument;
|
|
|