OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012, 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 /** | |
6 * Constants for use in metadata annotations such as | |
7 * `@proxy`. | |
8 * | |
9 * See also `@deprecated` and `@override` in the `dart:core` library. | |
10 * | |
11 * Annotations provide semantic information | |
12 * that tools can use to provide a better user experience. | |
13 * For example, an IDE might not autocomplete | |
14 * the name of a function that's been marked `@deprecated`, | |
15 * or it might display the function's name differently. | |
16 * | |
17 * For information on installing and importing this library, see the | |
18 * [meta package on pub.dartlang.org] | |
19 * (http://pub.dartlang.org/packages/meta). | |
20 * For examples of using annotations, see | |
21 * [Metadata](https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.ht
ml#ch02-metadata) | |
22 * in the language tour. | |
23 */ | |
24 library meta; | |
25 | |
26 /** | |
27 * An annotation used to mark a class that should be considered to implement | |
28 * every possible getter, setter and method. Tools can use this annotation to | |
29 * suppress warnings when there is no explicit implementation of a referenced | |
30 * member. Tools should provide a hint if this annotation is applied to a class | |
31 * that does not implement or inherit an implementation of the method | |
32 * [:noSuchMethod:] (other than the implementation in [Object]). Note that | |
33 * classes are not affected by the use of this annotation on a supertype. | |
34 */ | |
35 const proxy = const _Proxy(); | |
36 | |
37 class _Proxy { | |
38 const _Proxy(); | |
39 } | |
OLD | NEW |