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

Unified Diff: packages/dart_style/test/splitting/mixed.stmt

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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 | « packages/dart_style/test/splitting/members.unit ('k') | packages/dart_style/test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « packages/dart_style/test/splitting/members.unit ('k') | packages/dart_style/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698