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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1098 */ | 1098 */ |
1099 bool get isNamed; | 1099 bool get isNamed; |
1100 | 1100 |
1101 /** | 1101 /** |
1102 * Returns [:true:] if the reflectee has a default value. | 1102 * Returns [:true:] if the reflectee has a default value. |
1103 * Otherwise returns [:false:]. | 1103 * Otherwise returns [:false:]. |
1104 */ | 1104 */ |
1105 bool get hasDefaultValue; | 1105 bool get hasDefaultValue; |
1106 | 1106 |
1107 /** | 1107 /** |
1108 * A mirror on the default value for this parameter, if it exists. | 1108 * A mirror on the default value for this parameter, if it exists. |
rmacnak
2013/08/23 23:15:27
And do what if it doesn't?
Michael Lippautz (Google)
2013/08/24 00:17:21
Done.
| |
1109 */ | 1109 */ |
1110 // TODO(ahe): This should return an InstanceMirror. | 1110 InstanceMirror get defaultValue; |
1111 String get defaultValue; | |
1112 } | 1111 } |
1113 | 1112 |
1114 /** | 1113 /** |
1115 * A [SourceLocation] describes the span of an entity in Dart source code. | 1114 * A [SourceLocation] describes the span of an entity in Dart source code. |
1116 */ | 1115 */ |
1117 abstract class SourceLocation { | 1116 abstract class SourceLocation { |
1118 } | 1117 } |
1119 | 1118 |
1120 /** | 1119 /** |
1121 * When an error occurs during the mirrored execution of code, a | 1120 * When an error occurs during the mirrored execution of code, a |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1318 * | 1317 * |
1319 * When used as metadata on an import of "dart:mirrors", this metadata does | 1318 * When used as metadata on an import of "dart:mirrors", this metadata does |
1320 * not apply to the library in which the annotation is used, but instead | 1319 * not apply to the library in which the annotation is used, but instead |
1321 * applies to the other libraries (all libraries if "*" is used). | 1320 * applies to the other libraries (all libraries if "*" is used). |
1322 */ | 1321 */ |
1323 final override; | 1322 final override; |
1324 | 1323 |
1325 const MirrorsUsed( | 1324 const MirrorsUsed( |
1326 {this.symbols, this.targets, this.metaTargets, this.override}); | 1325 {this.symbols, this.targets, this.metaTargets, this.override}); |
1327 } | 1326 } |
OLD | NEW |