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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 * The source code for the reflectee, if available. Otherwise null. | 893 * The source code for the reflectee, if available. Otherwise null. |
894 */ | 894 */ |
895 String get source; | 895 String get source; |
896 | 896 |
897 /** | 897 /** |
898 * A list of mirrors on the parameters for the reflectee. | 898 * A list of mirrors on the parameters for the reflectee. |
899 */ | 899 */ |
900 List<ParameterMirror> get parameters; | 900 List<ParameterMirror> get parameters; |
901 | 901 |
902 /** | 902 /** |
903 * Is the reflectee static? | 903 * A function is considered non-static iff it is permited to refer to 'this'. |
904 * | 904 * |
905 * For the purposes of the mirrors library, a top-level function is | 905 * Note that generative constructors are considered non-static, whereas |
906 * considered static. | 906 * factory constructors are considered static. |
907 */ | 907 */ |
908 bool get isStatic; | 908 bool get isStatic; |
909 | 909 |
910 /** | 910 /** |
911 * Is the reflectee abstract? | 911 * Is the reflectee abstract? |
912 */ | 912 */ |
913 bool get isAbstract; | 913 bool get isAbstract; |
914 | 914 |
915 /** | 915 /** |
916 * Returns true if the reflectee is synthetic, and returns false otherwise. | 916 * Returns true if the reflectee is synthetic, and returns false otherwise. |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 * | 1214 * |
1215 * When used as metadata on an import of "dart:mirrors", this metadata does | 1215 * When used as metadata on an import of "dart:mirrors", this metadata does |
1216 * not apply to the library in which the annotation is used, but instead | 1216 * not apply to the library in which the annotation is used, but instead |
1217 * applies to the other libraries (all libraries if "*" is used). | 1217 * applies to the other libraries (all libraries if "*" is used). |
1218 */ | 1218 */ |
1219 final override; | 1219 final override; |
1220 | 1220 |
1221 const MirrorsUsed( | 1221 const MirrorsUsed( |
1222 {this.symbols, this.targets, this.metaTargets, this.override}); | 1222 {this.symbols, this.targets, this.metaTargets, this.override}); |
1223 } | 1223 } |
OLD | NEW |