| 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 #library('mirrors'); | 5 #library('mirrors'); |
| 6 | 6 |
| 7 #import('dart:io'); | 7 #import('dart:io'); |
| 8 #import('dart:uri'); | 8 #import('dart:uri'); |
| 9 | 9 |
| 10 // TODO(rnystrom): Use "package:" URL (#4968). | 10 // TODO(rnystrom): Use "package:" URL (#4968). |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 /** | 126 /** |
| 127 * Returns an iterable over all types in the library. | 127 * Returns an iterable over all types in the library. |
| 128 */ | 128 */ |
| 129 Map<String, InterfaceMirror> get types; | 129 Map<String, InterfaceMirror> get types; |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * Returns the source location for this library. | 132 * Returns the source location for this library. |
| 133 */ | 133 */ |
| 134 Location get location; | 134 Location get location; |
| 135 |
| 136 /** |
| 137 * Returns the canonical URI for this library. |
| 138 */ |
| 139 Uri get uri; |
| 135 } | 140 } |
| 136 | 141 |
| 137 /** | 142 /** |
| 138 * Common interface for classes, interfaces, typedefs and type variables. | 143 * Common interface for classes, interfaces, typedefs and type variables. |
| 139 */ | 144 */ |
| 140 abstract class TypeMirror implements Mirror { | 145 abstract class TypeMirror implements Mirror { |
| 141 /** | 146 /** |
| 142 * Returns the source location for this type. | 147 * Returns the source location for this type. |
| 143 */ | 148 */ |
| 144 Location get location; | 149 Location get location; |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 /** | 500 /** |
| 496 * Returns the URI where the source originated. | 501 * Returns the URI where the source originated. |
| 497 */ | 502 */ |
| 498 Uri get uri; | 503 Uri get uri; |
| 499 | 504 |
| 500 /** | 505 /** |
| 501 * Returns the text of this source. | 506 * Returns the text of this source. |
| 502 */ | 507 */ |
| 503 String get text; | 508 String get text; |
| 504 } | 509 } |
| OLD | NEW |