| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import 'lib/lib.dart'; | 5 class A1 {} |
| 6 | 6 |
| 7 /// Tree-shaker preserves APIs used anywhere in the library, there is no special | 7 class A2 {} |
| 8 /// root, and `main` is no special. | 8 |
| 9 class X { | 9 class A3 {} |
| 10 static foo() => toplevel(); | 10 |
| 11 class A4 {} |
| 12 |
| 13 class A5 {} |
| 14 |
| 15 class A6 {} |
| 16 |
| 17 class B { |
| 18 A1 publicField; |
| 19 A2 _privateField; |
| 20 |
| 21 B(); |
| 22 B.publicConstructor(A3 a, [A4 b]); |
| 23 B._privateConstructor(A5 a); |
| 11 } | 24 } |
| OLD | NEW |