OLD | NEW |
1 40 columns | | 1 40 columns | |
2 >>> force newline before directives | 2 >>> force newline before directives |
3 @deprecated library foo; | 3 @deprecated library foo; |
4 | 4 |
5 @deprecated import 'dart:io'; | 5 @deprecated import 'dart:io'; |
6 | 6 |
7 @deprecated export 'dart:io'; | 7 @deprecated export 'dart:io'; |
8 <<< | 8 <<< |
9 @deprecated | 9 @deprecated |
10 library foo; | 10 library foo; |
11 | 11 |
12 @deprecated | 12 @deprecated |
13 import 'dart:io'; | 13 import 'dart:io'; |
14 | 14 |
15 @deprecated | 15 @deprecated |
16 export 'dart:io'; | 16 export 'dart:io'; |
| 17 >>> metadata on part |
| 18 @foo part "part.dart"; |
| 19 <<< |
| 20 @foo |
| 21 part "part.dart"; |
| 22 >>> metadata on part of |
| 23 @foo part of bar; |
| 24 <<< |
| 25 @foo |
| 26 part of bar; |
17 >>> force newline before types | 27 >>> force newline before types |
18 @meta class X {} | 28 @meta class X {} |
19 | 29 |
20 @meta class Y = X with Z; | 30 @meta class Y = X with Z; |
21 | 31 |
22 @meta typedef void X(y); | 32 @meta typedef void X(y); |
23 <<< | 33 <<< |
24 @meta | 34 @meta |
25 class X {} | 35 class X {} |
26 | 36 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 <<< | 218 <<< |
209 withReturnType( | 219 withReturnType( |
210 @foo @bar int fn(@foo param)) {} | 220 @foo @bar int fn(@foo param)) {} |
211 withoutReturnType( | 221 withoutReturnType( |
212 @foo @bar fn(@foo param)) {} | 222 @foo @bar fn(@foo param)) {} |
213 >>> metadata on default formal parameter | 223 >>> metadata on default formal parameter |
214 positional([@foo bar]) {} | 224 positional([@foo bar]) {} |
215 named({@foo bar}) {} | 225 named({@foo bar}) {} |
216 <<< | 226 <<< |
217 positional([@foo bar]) {} | 227 positional([@foo bar]) {} |
218 named({@foo bar}) {} | 228 named({@foo bar}) {} |
| 229 >>> split between metadata and parameter indents |
| 230 function(@VeryLongMetadataAnnotation longParameter) {} |
| 231 <<< |
| 232 function( |
| 233 @VeryLongMetadataAnnotation |
| 234 longParameter) {} |
OLD | NEW |