OLD | NEW |
(Empty) | |
| 1 40 columns | |
| 2 >>> does not wrap long import string (#16366) |
| 3 import 'package:some/very/long/import/path.dart'; |
| 4 <<< |
| 5 import 'package:some/very/long/import/path.dart'; |
| 6 >>> wrap import at as |
| 7 import 'package:some/very/long/import/path.dart' as path; |
| 8 <<< |
| 9 import 'package:some/very/long/import/path.dart' |
| 10 as path; |
| 11 >>> split before deferred |
| 12 import 'package:some/very/long/import/path.dart' deferred as path; |
| 13 <<< |
| 14 import 'package:some/very/long/import/path.dart' |
| 15 deferred as path; |
| 16 >>> import keeps shows on one line |
| 17 import 'foo.dart'show Ape,Bear,Cat; |
| 18 <<< |
| 19 import 'foo.dart' show Ape, Bear, Cat; |
| 20 >>> import moves all shows to next line |
| 21 import 'foo.dart'show Ape,Bear,Cat,Dog; |
| 22 <<< |
| 23 import 'foo.dart' |
| 24 show Ape, Bear, Cat, Dog; |
| 25 >>> import moves all shows each to their own line |
| 26 import 'foo.dart'show Ape,Bear,Cat,Dog,Echidna,FlyingFox,Gorilla; |
| 27 <<< |
| 28 import 'foo.dart' |
| 29 show |
| 30 Ape, |
| 31 Bear, |
| 32 Cat, |
| 33 Dog, |
| 34 Echidna, |
| 35 FlyingFox, |
| 36 Gorilla; |
| 37 >>> import keeps hides on one line |
| 38 import 'foo.dart'hide Ape,Bear,Cat; |
| 39 <<< |
| 40 import 'foo.dart' hide Ape, Bear, Cat; |
| 41 >>> import moves hides to next line |
| 42 import 'foo.dart'hide Ape,Bear,Cat,Dog; |
| 43 <<< |
| 44 import 'foo.dart' |
| 45 hide Ape, Bear, Cat, Dog; |
| 46 >>> import moves hides each to their own line |
| 47 import 'foo.dart'hide Ape,Bear,Cat,Dog,Echidna,FlyingFox,Gorilla; |
| 48 <<< |
| 49 import 'foo.dart' |
| 50 hide |
| 51 Ape, |
| 52 Bear, |
| 53 Cat, |
| 54 Dog, |
| 55 Echidna, |
| 56 FlyingFox, |
| 57 Gorilla; |
| 58 >>> single line both |
| 59 import 'foo.dart'hide Ape show Bear; |
| 60 <<< |
| 61 import 'foo.dart' hide Ape show Bear; |
| 62 >>> multiline first |
| 63 import 'foo.dart'hide Ape,Bear,Cat,Dog, Echidna, FlyingFox show Ape,Bear,Cat,Dog
; |
| 64 <<< |
| 65 import 'foo.dart' |
| 66 hide |
| 67 Ape, |
| 68 Bear, |
| 69 Cat, |
| 70 Dog, |
| 71 Echidna, |
| 72 FlyingFox |
| 73 show Ape, Bear, Cat, Dog; |
| 74 >>> multiline second |
| 75 import 'foo.dart'hide Ape,Bear,Cat,Dog show Ape,Bear,Cat,Dog, Echidna, FlyingFox
; |
| 76 <<< |
| 77 import 'foo.dart' |
| 78 hide Ape, Bear, Cat, Dog |
| 79 show |
| 80 Ape, |
| 81 Bear, |
| 82 Cat, |
| 83 Dog, |
| 84 Echidna, |
| 85 FlyingFox; |
| 86 >>> multiline both |
| 87 import 'foo.dart'hide Ape,Bear,Cat,Dog, Echidna, FlyingFox show Ape,Bear,Cat,Dog
, Echidna, FlyingFox; |
| 88 <<< |
| 89 import 'foo.dart' |
| 90 hide |
| 91 Ape, |
| 92 Bear, |
| 93 Cat, |
| 94 Dog, |
| 95 Echidna, |
| 96 FlyingFox |
| 97 show |
| 98 Ape, |
| 99 Bear, |
| 100 Cat, |
| 101 Dog, |
| 102 Echidna, |
| 103 FlyingFox; |
| 104 >>> double line both |
| 105 import 'foo.dart'hide Ape,Bear,Cat,Dog show Ape,Bear,Cat,Dog; |
| 106 <<< |
| 107 import 'foo.dart' |
| 108 hide Ape, Bear, Cat, Dog |
| 109 show Ape, Bear, Cat, Dog; |
| 110 >>> force both keywords to split even if first would fit on first line |
| 111 import 'foo.dart' hide Ape, Bear show Ape, Bear, Cat, Dog; |
| 112 <<< |
| 113 import 'foo.dart' |
| 114 hide Ape, Bear |
| 115 show Ape, Bear, Cat, Dog; |
| 116 >>> force split in list |
| 117 import 'foo.dart' hide First, // |
| 118 Second; |
| 119 <<< |
| 120 import 'foo.dart' |
| 121 hide |
| 122 First, // |
| 123 Second; |
OLD | NEW |