| 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 // 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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 class MirrorsUsed { | 1219 class MirrorsUsed { |
| 1220 // Note: the fields of this class are untyped. This is because the most | 1220 // Note: the fields of this class are untyped. This is because the most |
| 1221 // convenient way to specify to specify symbols today is using a single | 1221 // convenient way to specify to specify symbols today is using a single |
| 1222 // string. In some cases, a const list of classes might be convenient. Some | 1222 // string. In some cases, a const list of classes might be convenient. Some |
| 1223 // might prefer to use a const list of symbols. | 1223 // might prefer to use a const list of symbols. |
| 1224 | 1224 |
| 1225 /** | 1225 /** |
| 1226 * The list of strings passed to new [Symbol], and symbols that might be | 1226 * The list of strings passed to new [Symbol], and symbols that might be |
| 1227 * passed to [MirrorSystem.getName]. | 1227 * passed to [MirrorSystem.getName]. |
| 1228 * | 1228 * |
| 1229 * Combined with the names of [reflectiveTarget], [metaTargets] and their | 1229 * Combined with the names of [targets], [metaTargets] and their members, |
| 1230 * members, this forms the complete list of strings passed to new [Symbol], | 1230 * this forms the complete list of strings passed to new [Symbol], and |
| 1231 * and symbols that might be passed to [MirrorSystem.getName] by the library | 1231 * symbols that might be passed to [MirrorSystem.getName] by the library to |
| 1232 * to which this metadata applies. | 1232 * which this metadata applies. |
| 1233 * | 1233 * |
| 1234 * The following text is non-normative: | 1234 * The following text is non-normative: |
| 1235 * | 1235 * |
| 1236 * Specifying this option turns off the following warnings emitted by | 1236 * Specifying this option turns off the following warnings emitted by |
| 1237 * dart2js: | 1237 * dart2js: |
| 1238 * | 1238 * |
| 1239 * * Using "MirrorSystem.getName" may result in larger output. | 1239 * * Using "MirrorSystem.getName" may result in larger output. |
| 1240 * * Using "new #{name}" may result in larger output. | 1240 * * Using "new #{name}" may result in larger output. |
| 1241 * | 1241 * |
| 1242 * Use symbols = "*" to turn off the warnings mentioned above. | 1242 * Use symbols = "*" to turn off the warnings mentioned above. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 * | 1276 * |
| 1277 * When used as metadata on an import of "dart:mirrors", this metadata does | 1277 * When used as metadata on an import of "dart:mirrors", this metadata does |
| 1278 * not apply to the library in which the annotation is used, but instead | 1278 * not apply to the library in which the annotation is used, but instead |
| 1279 * applies to the other libraries (all libraries if "*" is used). | 1279 * applies to the other libraries (all libraries if "*" is used). |
| 1280 */ | 1280 */ |
| 1281 final override; | 1281 final override; |
| 1282 | 1282 |
| 1283 const MirrorsUsed( | 1283 const MirrorsUsed( |
| 1284 {this.symbols, this.targets, this.metaTargets, this.override}); | 1284 {this.symbols, this.targets, this.metaTargets, this.override}); |
| 1285 } | 1285 } |
| OLD | NEW |