OLD | NEW |
(Empty) | |
| 1 40 columns | |
| 2 >>> leading whitespace before top comment is deleted |
| 3 |
| 4 |
| 5 // comment |
| 6 <<< |
| 7 // comment |
| 8 >>> |
| 9 //comment one |
| 10 |
| 11 //comment two |
| 12 |
| 13 <<< |
| 14 //comment one |
| 15 |
| 16 //comment two |
| 17 >>> |
| 18 /* foo */ /* bar */ |
| 19 <<< |
| 20 /* foo */ /* bar */ |
| 21 >>> |
| 22 var x; //x |
| 23 <<< |
| 24 var x; //x |
| 25 >>> |
| 26 library foo; |
| 27 |
| 28 /// Docs |
| 29 /// spanning |
| 30 /// lines. |
| 31 class A { |
| 32 } |
| 33 |
| 34 /// ... and |
| 35 |
| 36 /// Dangling ones too |
| 37 int x; |
| 38 <<< |
| 39 library foo; |
| 40 |
| 41 /// Docs |
| 42 /// spanning |
| 43 /// lines. |
| 44 class A {} |
| 45 |
| 46 /// ... and |
| 47 |
| 48 /// Dangling ones too |
| 49 int x; |
| 50 >>> |
| 51 library foo; |
| 52 |
| 53 //comment one |
| 54 |
| 55 class C { |
| 56 } |
| 57 <<< |
| 58 library foo; |
| 59 |
| 60 //comment one |
| 61 |
| 62 class C {} |
| 63 >>> |
| 64 library foo; |
| 65 |
| 66 //comment one |
| 67 |
| 68 //comment two |
| 69 |
| 70 class C { |
| 71 } |
| 72 <<< |
| 73 library foo; |
| 74 |
| 75 //comment one |
| 76 |
| 77 //comment two |
| 78 |
| 79 class C {} |
| 80 >>> |
| 81 import 'a.dart'; // a comment |
| 82 class Foo {} |
| 83 <<< |
| 84 import 'a.dart'; // a comment |
| 85 |
| 86 class Foo {} |
| 87 >>> |
| 88 import 'a.dart'; // a comment |
| 89 // comment |
| 90 class Foo {} |
| 91 <<< |
| 92 import 'a.dart'; // a comment |
| 93 |
| 94 // comment |
| 95 class Foo {} |
| 96 >>> |
| 97 import 'a.dart'; /* a */ // b |
| 98 /* c */ // d |
| 99 class Foo {} |
| 100 <<< |
| 101 import 'a.dart'; /* a */ // b |
| 102 |
| 103 /* c */ // d |
| 104 class Foo {} |
| 105 >>> |
| 106 import 'a.dart'; |
| 107 // a comment |
| 108 class Foo {} |
| 109 <<< |
| 110 import 'a.dart'; |
| 111 |
| 112 // a comment |
| 113 class Foo {} |
| 114 >>> |
| 115 import 'a.dart'; |
| 116 // import 'b.dart'; |
| 117 class Foo {} |
| 118 <<< |
| 119 import 'a.dart'; |
| 120 |
| 121 // import 'b.dart'; |
| 122 class Foo {} |
| 123 >>> |
| 124 import 'a.dart'; |
| 125 |
| 126 // a comment |
| 127 class Foo {} |
| 128 <<< |
| 129 import 'a.dart'; |
| 130 |
| 131 // a comment |
| 132 class Foo {} |
| 133 >>> |
| 134 import 'a.dart'; |
| 135 // a comment |
| 136 |
| 137 class Foo {} |
| 138 <<< |
| 139 import 'a.dart'; |
| 140 // a comment |
| 141 |
| 142 class Foo {} |
| 143 >>> two lines between library and import |
| 144 library foo; |
| 145 import 'a.dart'; |
| 146 <<< |
| 147 library foo; |
| 148 |
| 149 import 'a.dart'; |
| 150 >>> two lines between library and export |
| 151 library foo; |
| 152 export 'a.dart'; |
| 153 <<< |
| 154 library foo; |
| 155 |
| 156 export 'a.dart'; |
| 157 >>> two lines between library and part |
| 158 library foo; |
| 159 part 'a.dart'; |
| 160 <<< |
| 161 library foo; |
| 162 |
| 163 part 'a.dart'; |
| 164 >>> before library name |
| 165 library/* c */foo; |
| 166 <<< |
| 167 library /* c */ foo; |
| 168 >>> block comment before "." in library |
| 169 library a/**/.b.c; |
| 170 <<< |
| 171 library a /**/ .b.c; |
| 172 >>> block comment after "." in library |
| 173 library a./**/b.c; |
| 174 <<< |
| 175 library a. /**/ b.c; |
| 176 >>> line comment before "." in library |
| 177 library a// |
| 178 .b.c; |
| 179 <<< |
| 180 library a // |
| 181 .b.c; |
| 182 >>> line comment after "." in library |
| 183 library a.// |
| 184 b.c; |
| 185 <<< |
| 186 library a. // |
| 187 b.c; |
| 188 >>> inline block comment between different kinds of directives |
| 189 library a; /* comment */ import 'b.dart'; |
| 190 <<< |
| 191 library a; |
| 192 |
| 193 /* comment */ |
| 194 import 'b.dart'; |
| 195 >>> inline block comment between directives |
| 196 import 'a.dart'; /* comment */ import 'b.dart'; |
| 197 <<< |
| 198 import 'a.dart'; |
| 199 /* comment */ |
| 200 import 'b.dart'; |
| 201 >>> block comment between directives |
| 202 import 'a.dart'; /* comment */ |
| 203 import 'b.dart'; |
| 204 <<< |
| 205 import 'a.dart'; /* comment */ |
| 206 import 'b.dart'; |
| 207 >>> ensure blank line above doc comments |
| 208 var a = 1; |
| 209 /// doc |
| 210 var b = 2; |
| 211 <<< |
| 212 var a = 1; |
| 213 |
| 214 /// doc |
| 215 var b = 2; |
OLD | NEW |