OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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 // For the purposes of the mirrors library, we adopt a naming | 5 // For the purposes of the mirrors library, we adopt a naming |
6 // convention with respect to getters and setters. Specifically, for | 6 // convention with respect to getters and setters. Specifically, for |
7 // some variable or field... | 7 // some variable or field... |
8 // | 8 // |
9 // var myField; | 9 // var myField; |
10 // | 10 // |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 * considered static. | 913 * considered static. |
914 */ | 914 */ |
915 bool get isStatic; | 915 bool get isStatic; |
916 | 916 |
917 /** | 917 /** |
918 * Is the reflectee abstract? | 918 * Is the reflectee abstract? |
919 */ | 919 */ |
920 bool get isAbstract; | 920 bool get isAbstract; |
921 | 921 |
922 /** | 922 /** |
| 923 * Returns true if the reflectee is synthetic, and returns false otherwise. |
| 924 * |
| 925 * A reflectee is synthetic if it is a getter or setter implicitly introduced |
| 926 * for a field or Type, or if it is a constructor that was implicitly |
| 927 * introduced as a default constructor or as part of a mixin application. |
| 928 */ |
| 929 bool get isSynthetic; |
| 930 |
| 931 /** |
923 * Is the reflectee a regular function or method? | 932 * Is the reflectee a regular function or method? |
924 * | 933 * |
925 * A function or method is regular if it is not a getter, setter, or | 934 * A function or method is regular if it is not a getter, setter, or |
926 * constructor. Note that operators, by this definition, are | 935 * constructor. Note that operators, by this definition, are |
927 * regular methods. | 936 * regular methods. |
928 */ | 937 */ |
929 bool get isRegularMethod; | 938 bool get isRegularMethod; |
930 | 939 |
931 /** | 940 /** |
932 * Is the reflectee an operator? | 941 * Is the reflectee an operator? |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 * | 1203 * |
1195 * When used as metadata on an import of "dart:mirrors", this metadata does | 1204 * When used as metadata on an import of "dart:mirrors", this metadata does |
1196 * not apply to the library in which the annotation is used, but instead | 1205 * not apply to the library in which the annotation is used, but instead |
1197 * applies to the other libraries (all libraries if "*" is used). | 1206 * applies to the other libraries (all libraries if "*" is used). |
1198 */ | 1207 */ |
1199 final override; | 1208 final override; |
1200 | 1209 |
1201 const MirrorsUsed( | 1210 const MirrorsUsed( |
1202 {this.symbols, this.targets, this.metaTargets, this.override}); | 1211 {this.symbols, this.targets, this.metaTargets, this.override}); |
1203 } | 1212 } |
OLD | NEW |