| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 /** | 70 /** |
| 71 * Returns an [InstanceMirror] for some Dart language object. | 71 * Returns an [InstanceMirror] for some Dart language object. |
| 72 * | 72 * |
| 73 * This only works if this mirror system is associated with the | 73 * This only works if this mirror system is associated with the |
| 74 * current running isolate. | 74 * current running isolate. |
| 75 */ | 75 */ |
| 76 external InstanceMirror reflect(Object reflectee); | 76 external InstanceMirror reflect(Object reflectee); |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * Returns a [ClassMirror] for the class represented by a Dart |
| 80 * Type object. |
| 81 * |
| 82 * This only works with objects local to the current isolate. |
| 83 */ |
| 84 external ClassMirror reflectClass(Type key); |
| 85 |
| 86 /** |
| 79 * A [Mirror] reflects some Dart language entity. | 87 * A [Mirror] reflects some Dart language entity. |
| 80 * | 88 * |
| 81 * Every [Mirror] originates from some [MirrorSystem]. | 89 * Every [Mirror] originates from some [MirrorSystem]. |
| 82 */ | 90 */ |
| 83 abstract class Mirror { | 91 abstract class Mirror { |
| 84 /** | 92 /** |
| 85 * The [MirrorSystem] that contains this mirror. | 93 * The [MirrorSystem] that contains this mirror. |
| 86 */ | 94 */ |
| 87 MirrorSystem get mirrors; | 95 MirrorSystem get mirrors; |
| 88 } | 96 } |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 /** | 813 /** |
| 806 * Is [:true:] if this comment is a documentation comment. | 814 * Is [:true:] if this comment is a documentation comment. |
| 807 * | 815 * |
| 808 * That is, that the comment is either enclosed in [: /** ... */ :] or starts | 816 * That is, that the comment is either enclosed in [: /** ... */ :] or starts |
| 809 * with [: /// :]. | 817 * with [: /// :]. |
| 810 */ | 818 */ |
| 811 final bool isDocComment; | 819 final bool isDocComment; |
| 812 | 820 |
| 813 const Comment(this.text, this.trimmedText, this.isDocComment); | 821 const Comment(this.text, this.trimmedText, this.isDocComment); |
| 814 } | 822 } |
| OLD | NEW |