| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 } | 597 } |
| 598 | 598 |
| 599 /// A mirror on an import or export declaration. | 599 /// A mirror on an import or export declaration. |
| 600 abstract class LibraryDependencyMirror implements Mirror { | 600 abstract class LibraryDependencyMirror implements Mirror { |
| 601 /// Is `true` if this dependency is an import. | 601 /// Is `true` if this dependency is an import. |
| 602 bool get isImport; | 602 bool get isImport; |
| 603 | 603 |
| 604 /// Is `true` if this dependency is an export. | 604 /// Is `true` if this dependency is an export. |
| 605 bool get isExport; | 605 bool get isExport; |
| 606 | 606 |
| 607 /// Returns true iff this dependency is a deferred import. Otherwise returns |
| 608 /// false. |
| 609 bool get isDeferred; |
| 610 |
| 607 /// Returns the library mirror of the library that imports or exports the | 611 /// Returns the library mirror of the library that imports or exports the |
| 608 /// [targetLibrary]. | 612 /// [targetLibrary]. |
| 609 LibraryMirror get sourceLibrary; | 613 LibraryMirror get sourceLibrary; |
| 610 | 614 |
| 611 /// Returns the library mirror of the library that is imported or exported. | 615 /// Returns the library mirror of the library that is imported or exported. |
| 612 LibraryMirror get targetLibrary; | 616 LibraryMirror get targetLibrary; |
| 613 | 617 |
| 614 /// Returns the prefix if this is a prefixed import and `null` otherwise. | 618 /// Returns the prefix if this is a prefixed import and `null` otherwise. |
| 615 Symbol get prefix; | 619 Symbol get prefix; |
| 616 | 620 |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 * | 1256 * |
| 1253 * When used as metadata on an import of "dart:mirrors", this metadata does | 1257 * When used as metadata on an import of "dart:mirrors", this metadata does |
| 1254 * not apply to the library in which the annotation is used, but instead | 1258 * not apply to the library in which the annotation is used, but instead |
| 1255 * applies to the other libraries (all libraries if "*" is used). | 1259 * applies to the other libraries (all libraries if "*" is used). |
| 1256 */ | 1260 */ |
| 1257 final override; | 1261 final override; |
| 1258 | 1262 |
| 1259 const MirrorsUsed( | 1263 const MirrorsUsed( |
| 1260 {this.symbols, this.targets, this.metaTargets, this.override}); | 1264 {this.symbols, this.targets, this.metaTargets, this.override}); |
| 1261 } | 1265 } |
| OLD | NEW |