OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This library contains the definitions of annotations that provide additional | 6 * This library contains the definitions of annotations that provide additional |
7 * semantic information about the program being annotated. These annotations are | 7 * semantic information about the program being annotated. These annotations are |
8 * intended to be used by tools to provide a better user experience. | 8 * intended to be used by tools to provide a better user experience. |
9 * | 9 * |
10 * ## Installing ## | 10 * ## Installing ## |
(...skipping 28 matching lines...) Expand all Loading... | |
39 /** | 39 /** |
40 * An annotation used to mark an instance member (method, field, getter or | 40 * An annotation used to mark an instance member (method, field, getter or |
41 * setter) as overriding an inherited class member. Tools can use this | 41 * setter) as overriding an inherited class member. Tools can use this |
42 * annotation to provide a warning if there is no overridden member. | 42 * annotation to provide a warning if there is no overridden member. |
43 */ | 43 */ |
44 const override = const _Override(); | 44 const override = const _Override(); |
45 | 45 |
46 class _Override { | 46 class _Override { |
47 const _Override(); | 47 const _Override(); |
48 } | 48 } |
49 | |
50 /** | |
51 * An annotation used to mark a class that should be considered to implement | |
52 * every possible getter, setter and method. Tools can use this annotation to | |
53 * suppress warnings when there is no explicit implementation of a referenced | |
54 * member. Tools should provide a hint if this annotation is applied to a class | |
55 * that does not implement or inherit an implementation of the method | |
56 * [:noSuchMethod:] (other than the implementation in [Object]). | |
57 */ | |
58 const proxy = const _Proxy(); | |
59 | |
gbracha
2013/08/20 17:39:32
This seems reasonable to me, though I'm not sure t
Brian Wilkerson
2013/08/20 17:48:29
Understood. I was just doing what Lars suggested.
| |
60 class _Proxy { | |
61 const _Proxy(); | |
62 } | |
OLD | NEW |