OLD | NEW |
1 40 columns | | 1 40 columns | |
2 >>> discard newlines before library | 2 >>> discard newlines before library |
3 | 3 |
4 | 4 |
5 library a; | 5 library a; |
6 <<< | 6 <<< |
7 library a; | 7 library a; |
8 >>> discard newlines before first import | 8 >>> discard newlines before first import |
9 | 9 |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 | 55 |
56 <<< | 56 <<< |
57 class A {} | 57 class A {} |
58 | 58 |
59 class B = Base with Mixin; | 59 class B = Base with Mixin; |
60 | 60 |
61 var c = 1; | 61 var c = 1; |
62 | 62 |
63 d() {} | 63 d() {} |
64 >>> require at least a single newline between declarations | |
65 class A {} class B = Base with Mixin; var c = 1; d() {} | |
66 <<< | |
67 class A {} | |
68 class B = Base with Mixin; | |
69 var c = 1; | |
70 d() {} | |
71 >>> force two newlines between directives and declarations | 64 >>> force two newlines between directives and declarations |
72 library a; var b; | 65 library a; var b; |
73 <<< | 66 <<< |
74 library a; | 67 library a; |
75 | 68 |
76 var b; | 69 var b; |
77 >>> dartbug.com/15912 | 70 >>> dartbug.com/15912 |
78 abstract class A = B with C<E>; | 71 abstract class A = B with C<E>; |
79 <<< | 72 <<< |
80 abstract class A = B with C<E>; | 73 abstract class A = B with C<E>; |
| 74 >>> blank line between classes |
| 75 class A {} class B {} |
| 76 <<< |
| 77 class A {} |
| 78 |
| 79 class B {} |
| 80 >>> blank line between variables and classes |
| 81 var a = 1; class B{} var c = 3; |
| 82 <<< |
| 83 var a = 1; |
| 84 |
| 85 class B {} |
| 86 |
| 87 var c = 3; |
| 88 >>> blank line between functions and classes |
| 89 a() {} class B{} c() {} |
| 90 <<< |
| 91 a() {} |
| 92 |
| 93 class B {} |
| 94 |
| 95 c() {} |
| 96 >>> require newline between non-class declarations |
| 97 var a = 1; var b = 1; c() {} d() {} var e = 1; |
| 98 <<< |
| 99 var a = 1; |
| 100 var b = 1; |
| 101 c() {} |
| 102 d() {} |
| 103 var e = 1; |
OLD | NEW |