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

Side by Side Diff: test/splitting/constructors.unit

Issue 826393005: Try to keep constructor calls together. Fix #119. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « test/regression/119.stmt ('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 >>> Single initializers can be on one line 2 >>> Single initializers can be on one line
3 class Foo extends Bar { 3 class Foo extends Bar {
4 final int b; 4 final int b;
5 Foo(int a, this.b) : super(a); 5 Foo(int a, this.b) : super(a);
6 } 6 }
7 <<< 7 <<<
8 class Foo extends Bar { 8 class Foo extends Bar {
9 final int b; 9 final int b;
10 Foo(int a, this.b) : super(a); 10 Foo(int a, this.b) : super(a);
(...skipping 13 matching lines...) Expand all
24 class Foo extends Bar { 24 class Foo extends Bar {
25 final int b; 25 final int b;
26 Foo(int a, int b) : super(a), this.b = b == null ? 0 : b; 26 Foo(int a, int b) : super(a), this.b = b == null ? 0 : b;
27 } 27 }
28 <<< 28 <<<
29 class Foo extends Bar { 29 class Foo extends Bar {
30 final int b; 30 final int b;
31 Foo(int a, int b) 31 Foo(int a, int b)
32 : super(a), 32 : super(a),
33 this.b = b == null ? 0 : b; 33 this.b = b == null ? 0 : b;
34 } 34 }
35 >>> try to keep constructor call together
36 var longIdentifier = new Thing(
37 argument, argument);
38 <<<
39 var longIdentifier =
40 new Thing(argument, argument);
OLDNEW
« no previous file with comments | « test/regression/119.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698