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; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 @foo @bar int fn(@foo param)) {} | 202 @foo @bar int fn(@foo param)) {} |
203 withoutReturnType( | 203 withoutReturnType( |
204 @foo @bar fn(@foo param)) {} | 204 @foo @bar fn(@foo param)) {} |
205 >>> metadata on default formal parameter | 205 >>> metadata on default formal parameter |
206 positional([@foo bar]) {} | 206 positional([@foo bar]) {} |
207 named({@foo bar}) {} | 207 named({@foo bar}) {} |
208 <<< | 208 <<< |
209 positional([@foo bar]) {} | 209 positional([@foo bar]) {} |
210 named({@foo bar}) {} | 210 named({@foo bar}) {} |
211 >>> split between metadata and parameter indents | 211 >>> split between metadata and parameter indents |
212 function(@VeryLongMetadataAnnotation longParameter) {} | 212 function(@Annotation @VeryLongMetadataAnnotation longParameter) {} |
213 <<< | 213 <<< |
214 function( | 214 function( |
| 215 @Annotation |
215 @VeryLongMetadataAnnotation | 216 @VeryLongMetadataAnnotation |
216 longParameter) {} | 217 longParameter) {} |
| 218 >>> unsplit with trailing commas |
| 219 function(@Annotation longParameter,@Annotation @Other longParameter2,) {} |
| 220 <<< |
| 221 function( |
| 222 @Annotation longParameter, |
| 223 @Annotation @Other longParameter2, |
| 224 ) {} |
| 225 >>> split with trailing commas |
| 226 function(@Annotation longParameter,@Annotation @Other @Third longParameter2,) {} |
| 227 <<< |
| 228 function( |
| 229 @Annotation longParameter, |
| 230 @Annotation |
| 231 @Other |
| 232 @Third |
| 233 longParameter2, |
| 234 ) {} |
OLD | NEW |