| 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 library mirrors; | 5 library mirrors; |
| 6 | 6 |
| 7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
| 8 import 'dart:mirrors' as api show SourceLocation; | 8 import 'dart:mirrors' as api show SourceLocation; |
| 9 export 'dart:mirrors'; | 9 export 'dart:mirrors'; |
| 10 | 10 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 /// Returns the prefix if this is a prefixed import and `null` otherwise. | 136 /// Returns the prefix if this is a prefixed import and `null` otherwise. |
| 137 /*String*/ get prefix; | 137 /*String*/ get prefix; |
| 138 | 138 |
| 139 /// Returns the list of show/hide combinators on the import/export | 139 /// Returns the list of show/hide combinators on the import/export |
| 140 /// declaration. | 140 /// declaration. |
| 141 List<CombinatorMirror> get combinators; | 141 List<CombinatorMirror> get combinators; |
| 142 | 142 |
| 143 /// Returns the source location for this import/export declaration. | 143 /// Returns the source location for this import/export declaration. |
| 144 SourceLocation get location; | 144 SourceLocation get location; |
| 145 |
| 146 /// Returns a future that completes when the library is loaded and initates a |
| 147 /// load if one has not already happened. |
| 148 /*Future<LibraryMirror>*/ loadLibrary(); |
| 145 } | 149 } |
| 146 | 150 |
| 147 /// A mirror on a show/hide combinator declared on a library dependency. | 151 /// A mirror on a show/hide combinator declared on a library dependency. |
| 148 abstract class CombinatorSourceMirror | 152 abstract class CombinatorSourceMirror |
| 149 extends Mirror implements CombinatorMirror { | 153 extends Mirror implements CombinatorMirror { |
| 150 /// The list of identifiers on the combinator. | 154 /// The list of identifiers on the combinator. |
| 151 List/*<String>*/ get identifiers; | 155 List/*<String>*/ get identifiers; |
| 152 | 156 |
| 153 /// Is `true` if this is a 'show' combinator. | 157 /// Is `true` if this is a 'show' combinator. |
| 154 bool get isShow; | 158 bool get isShow; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 /** | 246 /** |
| 243 * Returns the URI where the source originated. | 247 * Returns the URI where the source originated. |
| 244 */ | 248 */ |
| 245 Uri get sourceUri; | 249 Uri get sourceUri; |
| 246 | 250 |
| 247 /** | 251 /** |
| 248 * Returns the text of this source. | 252 * Returns the text of this source. |
| 249 */ | 253 */ |
| 250 String get sourceText; | 254 String get sourceText; |
| 251 } | 255 } |
| OLD | NEW |