| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 /** | 55 /** |
| 56 * Returns an unmodifiable map of all libraries in this mirror system. | 56 * Returns an unmodifiable map of all libraries in this mirror system. |
| 57 */ | 57 */ |
| 58 Map<Object, LibraryMirror> get libraries; | 58 Map<Object, LibraryMirror> get libraries; |
| 59 } | 59 } |
| 60 | 60 |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * An entity in the mirror system. | 63 * An entity in the mirror system. |
| 64 */ | 64 */ |
| 65 abstract class Mirror implements Hashable { | 65 abstract class Mirror { |
| 66 /** | 66 /** |
| 67 * The simple name of the entity. The simple name is in most cases the | 67 * The simple name of the entity. The simple name is in most cases the |
| 68 * the declared single identifier name of the entity, such as 'method' for | 68 * the declared single identifier name of the entity, such as 'method' for |
| 69 * a method [:void method() {...}:]. | 69 * a method [:void method() {...}:]. |
| 70 */ | 70 */ |
| 71 String get simpleName; | 71 String get simpleName; |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * Returns the name of this entity qualified by is enclosing context. For | 74 * Returns the name of this entity qualified by is enclosing context. For |
| 75 * instance, the qualified name of a method 'method' in class 'Class' in | 75 * instance, the qualified name of a method 'method' in class 'Class' in |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 /** | 461 /** |
| 462 * Returns the URI where the source originated. | 462 * Returns the URI where the source originated. |
| 463 */ | 463 */ |
| 464 Uri get uri; | 464 Uri get uri; |
| 465 | 465 |
| 466 /** | 466 /** |
| 467 * Returns the text of this source. | 467 * Returns the text of this source. |
| 468 */ | 468 */ |
| 469 String get text; | 469 String get text; |
| 470 } | 470 } |
| OLD | NEW |