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

Side by Side Diff: test/splitting/parameters.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, 10 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 unified diff | Download patch
« no previous file with comments | « test/splitting/constructors.unit ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 40 columns | 1 40 columns |
2 >>> long parameters list, this.field 2 >>> long parameters list, this.field
3 class Foo { 3 class Foo {
4 Foo(this.first, this.second, this.third, this.fourth); 4 Foo(this.first, this.second, this.third, this.fourth);
5 } 5 }
6 <<< 6 <<<
7 class Foo { 7 class Foo {
8 Foo(this.first, this.second, 8 Foo(this.first, this.second,
9 this.third, this.fourth); 9 this.third, this.fourth);
10 } 10 }
11 >>> indent parameters more if body is a wrapped =>
12 method(int firstArgument, int argumentTwo) => "very long body that must wrap";
13 <<<
14 method(int firstArgument,
15 int argumentTwo) =>
16 "very long body that must wrap";
OLDNEW
« no previous file with comments | « test/splitting/constructors.unit ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698