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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 * for an optional parameter, the default is [:null:] and a mirror on [:null:] | 1076 * for an optional parameter, the default is [:null:] and a mirror on [:null:] |
1077 * is returned. | 1077 * is returned. |
1078 */ | 1078 */ |
1079 InstanceMirror get defaultValue; | 1079 InstanceMirror get defaultValue; |
1080 } | 1080 } |
1081 | 1081 |
1082 /** | 1082 /** |
1083 * A [SourceLocation] describes the span of an entity in Dart source code. | 1083 * A [SourceLocation] describes the span of an entity in Dart source code. |
1084 */ | 1084 */ |
1085 abstract class SourceLocation { | 1085 abstract class SourceLocation { |
| 1086 /** |
| 1087 * The 1-based line number for this source location. |
| 1088 * |
| 1089 * A value of 0 means that the line number is unknown. |
| 1090 */ |
| 1091 int get line; |
| 1092 |
| 1093 /** |
| 1094 * The 1-based column number for this source location. |
| 1095 * |
| 1096 * A value of 0 means that the column number is unknown. |
| 1097 */ |
| 1098 int get column; |
| 1099 |
| 1100 /** |
| 1101 * Returns the URI where the source originated. |
| 1102 */ |
| 1103 Uri get sourceUri; |
1086 } | 1104 } |
1087 | 1105 |
1088 /** | 1106 /** |
1089 * Class used for encoding comments as metadata annotations. | 1107 * Class used for encoding comments as metadata annotations. |
1090 */ | 1108 */ |
1091 class Comment { | 1109 class Comment { |
1092 /** | 1110 /** |
1093 * The comment text as written in the source text. | 1111 * The comment text as written in the source text. |
1094 */ | 1112 */ |
1095 final String text; | 1113 final String text; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1204 * | 1222 * |
1205 * When used as metadata on an import of "dart:mirrors", this metadata does | 1223 * When used as metadata on an import of "dart:mirrors", this metadata does |
1206 * not apply to the library in which the annotation is used, but instead | 1224 * not apply to the library in which the annotation is used, but instead |
1207 * applies to the other libraries (all libraries if "*" is used). | 1225 * applies to the other libraries (all libraries if "*" is used). |
1208 */ | 1226 */ |
1209 final override; | 1227 final override; |
1210 | 1228 |
1211 const MirrorsUsed( | 1229 const MirrorsUsed( |
1212 {this.symbols, this.targets, this.metaTargets, this.override}); | 1230 {this.symbols, this.targets, this.metaTargets, this.override}); |
1213 } | 1231 } |
OLD | NEW |