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

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

Issue 189843003: Reapply "Access to imports in the VM's runtime mirrors. Extend test coverage of the source mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 */ 111 */
112 abstract class LibrarySourceMirror 112 abstract class LibrarySourceMirror
113 implements DeclarationSourceMirror, LibraryMirror { 113 implements DeclarationSourceMirror, LibraryMirror {
114 /** 114 /**
115 * Returns a list of the imports and exports in this library; 115 * Returns a list of the imports and exports in this library;
116 */ 116 */
117 List<LibraryDependencyMirror> get libraryDependencies; 117 List<LibraryDependencyMirror> get libraryDependencies;
118 } 118 }
119 119
120 /// A mirror on an import or export declaration. 120 /// A mirror on an import or export declaration.
121 abstract class LibraryDependencyMirror extends Mirror { 121 abstract class LibraryDependencySourceMirror
122 extends Mirror implements LibraryDependencyMirror {
122 /// Is `true` if this dependency is an import. 123 /// Is `true` if this dependency is an import.
123 bool get isImport; 124 bool get isImport;
124 125
125 /// Is `true` if this dependency is an export. 126 /// Is `true` if this dependency is an export.
126 bool get isExport; 127 bool get isExport;
127 128
128 /// Returns the library mirror of the library that imports or exports the 129 /// Returns the library mirror of the library that imports or exports the
129 /// [targetLibrary]. 130 /// [targetLibrary].
130 LibraryMirror get sourceLibrary; 131 LibraryMirror get sourceLibrary;
131 132
132 /// Returns the library mirror of the library that is imported or exported. 133 /// Returns the library mirror of the library that is imported or exported.
133 LibraryMirror get targetLibrary; 134 LibraryMirror get targetLibrary;
134 135
135 /// 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.
136 String get prefix; 137 /*String*/ get prefix;
137 138
138 /// Returns the list of show/hide combinators on the import/export 139 /// Returns the list of show/hide combinators on the import/export
139 /// declaration. 140 /// declaration.
140 List<CombinatorMirror> get combinators; 141 List<CombinatorMirror> get combinators;
141 142
142 /// Returns the source location for this import/export declaration. 143 /// Returns the source location for this import/export declaration.
143 SourceLocation get location; 144 SourceLocation get location;
144 } 145 }
145 146
146 /// A mirror on a show/hide combinator declared on a library dependency. 147 /// A mirror on a show/hide combinator declared on a library dependency.
147 abstract class CombinatorMirror extends Mirror { 148 abstract class CombinatorSourceMirror
149 extends Mirror implements CombinatorMirror {
148 /// The list of identifiers on the combinator. 150 /// The list of identifiers on the combinator.
149 List<String> get identifiers; 151 List/*<String>*/ get identifiers;
150 152
151 /// Is `true` if this is a 'show' combinator. 153 /// Is `true` if this is a 'show' combinator.
152 bool get isShow; 154 bool get isShow;
153 155
154 /// Is `true` if this is a 'hide' combinator. 156 /// Is `true` if this is a 'hide' combinator.
155 bool get isHide; 157 bool get isHide;
156 } 158 }
157 159
158 /** 160 /**
159 * Common interface for classes, interfaces, typedefs and type variables. 161 * Common interface for classes, interfaces, typedefs and type variables.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 /** 242 /**
241 * Returns the URI where the source originated. 243 * Returns the URI where the source originated.
242 */ 244 */
243 Uri get sourceUri; 245 Uri get sourceUri;
244 246
245 /** 247 /**
246 * Returns the text of this source. 248 * Returns the text of this source.
247 */ 249 */
248 String get sourceText; 250 String get sourceText;
249 } 251 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/mirrors/dart2js_library_mirror.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698