OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015, the Dart Team. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in |
| 3 // the LICENSE file. |
| 4 |
| 5 /// File being transformed by the reflectable transformer. |
| 6 /// Part of the entry point 'meta_reflectors_test.dart'. |
| 7 /// |
| 8 /// Independence: The "domain classes" `M1`..`M3`, `A`..`D`, `P` are assumed to |
| 9 /// be specific to the particular entry point 'meta_reflectors_test.dart' and |
| 10 /// its transitive closure, but there is no dependency from them to any of the |
| 11 /// libraries introducing or using reflectable reflection. |
| 12 library test_reflectable.test.meta_reflectors_share; |
| 13 |
| 14 class P { |
| 15 const P(); |
| 16 } |
| 17 |
| 18 @P() |
| 19 class M1 { |
| 20 foo() {} |
| 21 var field; |
| 22 static staticFoo(x) {} |
| 23 } |
| 24 |
| 25 class M2 {} |
| 26 |
| 27 class M3 {} |
| 28 |
| 29 class A { |
| 30 foo() {} |
| 31 var field; |
| 32 static staticFoo(x) {} |
| 33 static staticBar() {} |
| 34 } |
| 35 |
| 36 class B extends A with M1 {} |
| 37 |
| 38 class C extends B with M2, M3 {} |
| 39 |
| 40 class D = A with M1; |
OLD | NEW |