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 'reflectors_test.dart'. |
| 7 /// |
| 8 /// Independence: This library defines reflectors only, and it does not depend |
| 9 /// on the usage of reflection. It does depend on the domain classes, because |
| 10 /// it uses `A` as an upper bound in a superclass quantifier. |
| 11 library test_reflectable.test.meta_reflectors_domain_definer; |
| 12 |
| 13 import "package:reflectable/reflectable.dart"; |
| 14 import "meta_reflectors_domain.dart"; |
| 15 |
| 16 class ReflectorUpwardsClosedToA extends Reflectable { |
| 17 const ReflectorUpwardsClosedToA() |
| 18 : super(const SuperclassQuantifyCapability(A), invokingCapability, |
| 19 declarationsCapability); |
| 20 } |
| 21 |
| 22 class ReflectorUpwardsClosedUntilA extends Reflectable { |
| 23 const ReflectorUpwardsClosedUntilA() |
| 24 : super(const SuperclassQuantifyCapability(A, excludeUpperBound: true), |
| 25 invokingCapability, declarationsCapability); |
| 26 } |
OLD | NEW |