Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart

Issue 14775002: Add LibraryDependencyMirror+CombinatorMirror to source mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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:async'; 7 import 'dart:async';
8 import 'dart:uri'; 8 import 'dart:uri';
9 9
10 /** 10 /**
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 /** 285 /**
286 * An immutable map from names to mirrors for all variable 286 * An immutable map from names to mirrors for all variable
287 * declarations in this library. 287 * declarations in this library.
288 */ 288 */
289 Map<String, VariableMirror> get variables; 289 Map<String, VariableMirror> get variables;
290 290
291 /** 291 /**
292 * Returns the canonical URI for this library. 292 * Returns the canonical URI for this library.
293 */ 293 */
294 Uri get uri; 294 Uri get uri;
295
296 /**
297 * Returns a list of the imports and exports in this library;
298 */
299 List<LibraryDependencyMirror> get libraryDependencies;
300 }
301
302 abstract class LibraryDependencyMirror {
303 bool get isImport;
304
305 bool get isExport;
306
307 LibraryMirror get sourceLibrary;
308
309 LibraryMirror get targetLibrary;
310
311 String get prefix;
312
313 List<CombinatorMirror> get combinators;
314
315 SourceLocation get location;
316 }
317
318 abstract class CombinatorMirror {
319 List<String> get identifiers;
320 bool get isShow;
321 bool get isHide;
295 } 322 }
296 323
297 /** 324 /**
298 * Common interface for classes, interfaces, typedefs and type variables. 325 * Common interface for classes, interfaces, typedefs and type variables.
299 */ 326 */
300 abstract class TypeMirror implements DeclarationMirror { 327 abstract class TypeMirror implements DeclarationMirror {
301 /** 328 /**
302 * Returns the library in which this member resides. 329 * Returns the library in which this member resides.
303 */ 330 */
304 LibraryMirror get library; 331 LibraryMirror get library;
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 /** 731 /**
705 * Returns the URI where the source originated. 732 * Returns the URI where the source originated.
706 */ 733 */
707 Uri get sourceUri; 734 Uri get sourceUri;
708 735
709 /** 736 /**
710 * Returns the text of this source. 737 * Returns the text of this source.
711 */ 738 */
712 String get sourceText; 739 String get sourceText;
713 } 740 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698