| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 * If the invocation returns a result *r*, this method returns | 511 * If the invocation returns a result *r*, this method returns |
| 512 * the result of calling [reflect](*r*). | 512 * the result of calling [reflect](*r*). |
| 513 * If the invocation causes a compilation error | 513 * If the invocation causes a compilation error |
| 514 * the effect is the same as if a non-reflective compilation error | 514 * the effect is the same as if a non-reflective compilation error |
| 515 * had been encountered. | 515 * had been encountered. |
| 516 * If the invocation throws an exception *e* (that it does not catch) | 516 * If the invocation throws an exception *e* (that it does not catch) |
| 517 * this method throws *e*. | 517 * this method throws *e*. |
| 518 */ | 518 */ |
| 519 InstanceMirror apply(List positionalArguments, | 519 InstanceMirror apply(List positionalArguments, |
| 520 [Map<Symbol, dynamic> namedArguments]); | 520 [Map<Symbol, dynamic> namedArguments]); |
| 521 | |
| 522 /** | |
| 523 * Not yet supported. Calling this method throws an [UnsupportedError]. | |
| 524 */ | |
| 525 InstanceMirror findInContext(Symbol name, {ifAbsent: null}); | |
| 526 } | 521 } |
| 527 | 522 |
| 528 /** | 523 /** |
| 529 * A [LibraryMirror] reflects a Dart language library, providing | 524 * A [LibraryMirror] reflects a Dart language library, providing |
| 530 * access to the variables, functions, and classes of the | 525 * access to the variables, functions, and classes of the |
| 531 * library. | 526 * library. |
| 532 */ | 527 */ |
| 533 abstract class LibraryMirror implements DeclarationMirror, ObjectMirror { | 528 abstract class LibraryMirror implements DeclarationMirror, ObjectMirror { |
| 534 /** | 529 /** |
| 535 * The absolute uri of the library. | 530 * The absolute uri of the library. |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 * | 1214 * |
| 1220 * When used as metadata on an import of "dart:mirrors", this metadata does | 1215 * When used as metadata on an import of "dart:mirrors", this metadata does |
| 1221 * not apply to the library in which the annotation is used, but instead | 1216 * not apply to the library in which the annotation is used, but instead |
| 1222 * applies to the other libraries (all libraries if "*" is used). | 1217 * applies to the other libraries (all libraries if "*" is used). |
| 1223 */ | 1218 */ |
| 1224 final override; | 1219 final override; |
| 1225 | 1220 |
| 1226 const MirrorsUsed( | 1221 const MirrorsUsed( |
| 1227 {this.symbols, this.targets, this.metaTargets, this.override}); | 1222 {this.symbols, this.targets, this.metaTargets, this.override}); |
| 1228 } | 1223 } |
| OLD | NEW |