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

Unified Diff: test/splitting/constructors.unit

Issue 889943004: Indent the parameter list more if the body is a wrapped "=>". Fix #144. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update changelog. Created 5 years, 11 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/144.unit ('k') | test/splitting/parameters.unit » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/constructors.unit
diff --git a/test/splitting/constructors.unit b/test/splitting/constructors.unit
index 0d7e474bba80689d976cb75cb612486d80e2b3ce..99a932eb98e5aa814a17d24eb27e31a5d4d98248 100644
--- a/test/splitting/constructors.unit
+++ b/test/splitting/constructors.unit
@@ -47,4 +47,14 @@ class Foo {
Foo(int longArg1, int longArg2,
int longArg3)
: this._(longArg1);
-}
+}
+>>> indent parameters more if body is a wrapped =>
+class Foo {
+ Foo(firstArgument, secondArgument, third) => "very long body that must wrap";
+}
+<<<
+class Foo {
+ Foo(firstArgument, secondArgument,
+ third) =>
+ "very long body that must wrap";
+}
« no previous file with comments | « test/regression/144.unit ('k') | test/splitting/parameters.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698