Chromium Code Reviews| Index: sdk/lib/mirrors/mirrors.dart |
| diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart |
| index 1c4c799b6037b1d9070c495be354445323df769e..b3dfd011cc9f033824bcf8c07c94cd157fa422c8 100644 |
| --- a/sdk/lib/mirrors/mirrors.dart |
| +++ b/sdk/lib/mirrors/mirrors.dart |
| @@ -619,6 +619,51 @@ abstract class LibraryMirror implements DeclarationMirror, ObjectMirror { |
| * [ArgumentError] is thrown. |
| */ |
| Function operator [](Symbol name); |
| + |
| + /** |
| + * Returns a list of the imports and exports in this library; |
| + */ |
| + List<LibraryDependencyMirror> get libraryDependencies; |
| +} |
| + |
|
rmacnak
2014/02/04 22:47:19
This is the same API as the source mirrors, with S
|
| +/// A mirror on an import or export declaration. |
| +abstract class LibraryDependencyMirror { |
| + /// Is `true` if this dependency is an import. |
| + bool get isImport; |
| + |
| + /// Is `true` if this dependency is an export. |
| + bool get isExport; |
| + |
| + /// Returns the library mirror of the library that imports or exports the |
| + /// [targetLibrary]. |
| + LibraryMirror get sourceLibrary; |
| + |
| + /// Returns the library mirror of the library that is imported or exported. |
| + LibraryMirror get targetLibrary; |
| + |
| + /// Returns the prefix if this is a prefixed import and `null` otherwise. |
| + Symbol get prefix; |
| + |
| + /// Returns the list of show/hide combinators on the import/export |
| + /// declaration. |
| + List<CombinatorMirror> get combinators; |
| + |
| + /// Returns the source location for this import/export declaration. |
| + SourceLocation get location; |
| + |
| + List<InstanceMirror> get metadata; |
| +} |
| + |
| +/// A mirror on a show/hide combinator declared on a library dependency. |
| +abstract class CombinatorMirror { |
| + /// The list of identifiers on the combinator. |
| + List<Symbol> get identifiers; |
| + |
| + /// Is `true` if this is a 'show' combinator. |
| + bool get isShow; |
| + |
| + /// Is `true` if this is a 'hide' combinator. |
| + bool get isHide; |
| } |
| /** |