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

Side by Side Diff: packages/dart_style/test/splitting/members.unit

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 4 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
OLDNEW
1 40 columns | 1 40 columns |
2 >>> prefers to wrap at => before params 2 >>> prefers to wrap at => before params
3 class Foo { 3 class Foo {
4 Stream methodName(AssetId id) => methodBodyHereItIs; 4 Stream methodName(AssetId id) => methodBodyHereItIs;
5 } 5 }
6 <<< 6 <<<
7 class Foo { 7 class Foo {
8 Stream methodName(AssetId id) => 8 Stream methodName(AssetId id) =>
9 methodBodyHereItIs; 9 methodBodyHereItIs;
10 } 10 }
11 >>> can split on getter 11 >>> can split on getter
12 class Foo { 12 class Foo {
13 VeryLongTypeAnnotation get veryLongGetter => null; 13 VeryLongTypeAnnotation get veryLongGetter => null;
14 } 14 }
15 <<< 15 <<<
16 class Foo { 16 class Foo {
17 VeryLongTypeAnnotation 17 VeryLongTypeAnnotation
18 get veryLongGetter => null; 18 get veryLongGetter => null;
19 } 19 }
20 >>> can split on setter 20 >>> can split on setter
21 class Foo { 21 class Foo {
22 VeryLongTypeAnnotation set veryLongSetter(v) {} 22 VeryLongTypeAnnotation set veryLongSetter(v) {}
23 } 23 }
24 <<< 24 <<<
25 class Foo { 25 class Foo {
26 VeryLongTypeAnnotation 26 VeryLongTypeAnnotation
27 set veryLongSetter(v) {} 27 set veryLongSetter(v) {}
28 } 28 }
29 >>> do not split after "covariant" in field (at least for now) (skip: published version of analyzer doesn't support 'covariant yet')
30 class Foo {
31 covariant var soMuchSoVeryLongFieldNameHere;
32 covariant VeryLongTypeAnnotation field;
33 }
34 <<<
35 class Foo {
36 covariant var soMuchSoVeryLongFieldNameHere;
37 covariant VeryLongTypeAnnotation
38 field;
39 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/splitting/maps.stmt ('k') | packages/dart_style/test/splitting/mixed.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698