| 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 */ | 1091 */ |
| 1092 bool get isOptional; | 1092 bool get isOptional; |
| 1093 | 1093 |
| 1094 /** | 1094 /** |
| 1095 * Returns [:true:] if the reflectee is a named parameter. | 1095 * Returns [:true:] if the reflectee is a named parameter. |
| 1096 * Otherwise returns [:false:]. | 1096 * Otherwise returns [:false:]. |
| 1097 */ | 1097 */ |
| 1098 bool get isNamed; | 1098 bool get isNamed; |
| 1099 | 1099 |
| 1100 /** | 1100 /** |
| 1101 * Returns [:true:] if the reflectee has a default value. | 1101 * Returns [:true:] if the reflectee has explicitly declared a default value. |
| 1102 * Otherwise returns [:false:]. | 1102 * Otherwise returns [:false:]. |
| 1103 */ | 1103 */ |
| 1104 bool get hasDefaultValue; | 1104 bool get hasDefaultValue; |
| 1105 | 1105 |
| 1106 /** | 1106 /** |
| 1107 * A mirror on the default value for this parameter, if it exists. | 1107 * If this is a required parameter, returns [:null:]. Otherwise returns a |
| 1108 * mirror on the default value for this parameter. If no default is declared |
| 1109 * for an optional parameter, the default is [:null:] and a mirror on [:null:] |
| 1110 * is returned. |
| 1108 */ | 1111 */ |
| 1109 // TODO(ahe): This should return an InstanceMirror. | 1112 InstanceMirror get defaultValue; |
| 1110 String get defaultValue; | |
| 1111 } | 1113 } |
| 1112 | 1114 |
| 1113 /** | 1115 /** |
| 1114 * A [SourceLocation] describes the span of an entity in Dart source code. | 1116 * A [SourceLocation] describes the span of an entity in Dart source code. |
| 1115 */ | 1117 */ |
| 1116 abstract class SourceLocation { | 1118 abstract class SourceLocation { |
| 1117 } | 1119 } |
| 1118 | 1120 |
| 1119 /** | 1121 /** |
| 1120 * When an error occurs during the mirrored execution of code, a | 1122 * When an error occurs during the mirrored execution of code, a |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 * | 1319 * |
| 1318 * When used as metadata on an import of "dart:mirrors", this metadata does | 1320 * When used as metadata on an import of "dart:mirrors", this metadata does |
| 1319 * not apply to the library in which the annotation is used, but instead | 1321 * not apply to the library in which the annotation is used, but instead |
| 1320 * applies to the other libraries (all libraries if "*" is used). | 1322 * applies to the other libraries (all libraries if "*" is used). |
| 1321 */ | 1323 */ |
| 1322 final override; | 1324 final override; |
| 1323 | 1325 |
| 1324 const MirrorsUsed( | 1326 const MirrorsUsed( |
| 1325 {this.symbols, this.targets, this.metaTargets, this.override}); | 1327 {this.symbols, this.targets, this.metaTargets, this.override}); |
| 1326 } | 1328 } |
| OLD | NEW |