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

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

Issue 153553007: Add mirrors_reader_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 { 121 abstract class LibraryDependencyMirror extends Mirror {
122 /// Is `true` if this dependency is an import. 122 /// Is `true` if this dependency is an import.
123 bool get isImport; 123 bool get isImport;
124 124
125 /// Is `true` if this dependency is an export. 125 /// Is `true` if this dependency is an export.
126 bool get isExport; 126 bool get isExport;
127 127
128 /// Returns the library mirror of the library that imports or exports the 128 /// Returns the library mirror of the library that imports or exports the
129 /// [targetLibrary]. 129 /// [targetLibrary].
130 LibraryMirror get sourceLibrary; 130 LibraryMirror get sourceLibrary;
131 131
132 /// Returns the library mirror of the library that is imported or exported. 132 /// Returns the library mirror of the library that is imported or exported.
133 LibraryMirror get targetLibrary; 133 LibraryMirror get targetLibrary;
134 134
135 /// Returns the prefix if this is a prefixed import and `null` otherwise. 135 /// Returns the prefix if this is a prefixed import and `null` otherwise.
136 String get prefix; 136 String get prefix;
137 137
138 /// Returns the list of show/hide combinators on the import/export 138 /// Returns the list of show/hide combinators on the import/export
139 /// declaration. 139 /// declaration.
140 List<CombinatorMirror> get combinators; 140 List<CombinatorMirror> get combinators;
141 141
142 /// Returns the source location for this import/export declaration. 142 /// Returns the source location for this import/export declaration.
143 SourceLocation get location; 143 SourceLocation get location;
144 } 144 }
145 145
146 /// A mirror on a show/hide combinator declared on a library dependency. 146 /// A mirror on a show/hide combinator declared on a library dependency.
147 abstract class CombinatorMirror { 147 abstract class CombinatorMirror extends Mirror {
148 /// The list of identifiers on the combinator. 148 /// The list of identifiers on the combinator.
149 List<String> get identifiers; 149 List<String> get identifiers;
150 150
151 /// Is `true` if this is a 'show' combinator. 151 /// Is `true` if this is a 'show' combinator.
152 bool get isShow; 152 bool get isShow;
153 153
154 /// Is `true` if this is a 'hide' combinator. 154 /// Is `true` if this is a 'hide' combinator.
155 bool get isHide; 155 bool get isHide;
156 } 156 }
157 157
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 /** 240 /**
241 * Returns the URI where the source originated. 241 * Returns the URI where the source originated.
242 */ 242 */
243 Uri get sourceUri; 243 Uri get sourceUri;
244 244
245 /** 245 /**
246 * Returns the text of this source. 246 * Returns the text of this source.
247 */ 247 */
248 String get sourceText; 248 String get sourceText;
249 } 249 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698