Chromium Code Reviews| 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 757 * null. | 757 * null. |
| 758 */ | 758 */ |
| 759 ClassMirror get superclass; | 759 ClassMirror get superclass; |
| 760 | 760 |
| 761 /** | 761 /** |
| 762 * A list of mirrors on the superinterfaces of the reflectee. | 762 * A list of mirrors on the superinterfaces of the reflectee. |
| 763 */ | 763 */ |
| 764 List<ClassMirror> get superinterfaces; | 764 List<ClassMirror> get superinterfaces; |
| 765 | 765 |
| 766 /** | 766 /** |
| 767 * The mixin of this class. | |
| 768 * If this class is the result of a mixin application of the | |
| 769 * form S with M, returns a class mirror on M. | |
| 770 * Otherwise returns a class mirror on [reflectee]. | |
|
ahe
2013/10/15 07:00:38
Otherwise returns this.
gbracha
2013/10/15 17:03:21
That is a stronger specification. In principle, yo
ahe
2013/10/16 07:28:39
Returning "this" is more accurate in case of subcl
| |
| 771 */ | |
| 772 ClassMirror get mixin; | |
| 773 | |
| 774 /** | |
| 767 * An immutable map from names to mirrors for all members of | 775 * An immutable map from names to mirrors for all members of |
| 768 * this type. | 776 * this type. |
| 769 * | 777 * |
| 770 * The members of a type are its methods, fields, getters, and | 778 * The members of a type are its methods, fields, getters, and |
| 771 * setters. Note that constructors and type variables are not | 779 * setters. Note that constructors and type variables are not |
| 772 * considered to be members of a type. | 780 * considered to be members of a type. |
| 773 * | 781 * |
| 774 * This does not include inherited members. | 782 * This does not include inherited members. |
| 775 */ | 783 */ |
| 776 Map<Symbol, Mirror> get members; | 784 Map<Symbol, Mirror> get members; |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1376 * | 1384 * |
| 1377 * When used as metadata on an import of "dart:mirrors", this metadata does | 1385 * When used as metadata on an import of "dart:mirrors", this metadata does |
| 1378 * not apply to the library in which the annotation is used, but instead | 1386 * not apply to the library in which the annotation is used, but instead |
| 1379 * applies to the other libraries (all libraries if "*" is used). | 1387 * applies to the other libraries (all libraries if "*" is used). |
| 1380 */ | 1388 */ |
| 1381 final override; | 1389 final override; |
| 1382 | 1390 |
| 1383 const MirrorsUsed( | 1391 const MirrorsUsed( |
| 1384 {this.symbols, this.targets, this.metaTargets, this.override}); | 1392 {this.symbols, this.targets, this.metaTargets, this.override}); |
| 1385 } | 1393 } |
| OLD | NEW |