OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 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 file. |
| 4 |
| 5 /// An empty library that declares what needs to be retained with [MirrorsUsed] |
| 6 /// if you were to use observables together with mirrors. By default this is not |
| 7 /// included because frameworks using this package also use code generation to |
| 8 /// avoid using mirrors at deploy time. |
| 9 library observe.mirrors_used; |
| 10 |
| 11 // Note: ObservableProperty is in this list only for the unusual use case of |
| 12 // invoking dart2js without running this package's transformers. The |
| 13 // transformer in `lib/transformer.dart` will replace @observable with the |
| 14 // @reflectable annotation. |
| 15 @MirrorsUsed(metaTargets: const [Reflectable, ObservableProperty], |
| 16 override: 'smoke.mirrors') |
| 17 import 'dart:mirrors' show MirrorsUsed; |
| 18 import 'package:observe/observe.dart' show Reflectable, ObservableProperty; |
OLD | NEW |