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

Side by Side Diff: pkg/compiler/lib/src/mirrors/source_mirrors.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/mirrors/mirrors_util.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 LibraryDependencySourceMirror 121 abstract class LibraryDependencySourceMirror extends Mirror
122 extends Mirror implements LibraryDependencyMirror { 122 implements LibraryDependencyMirror {
123 /// Is `true` if this dependency is an import. 123 /// Is `true` if this dependency is an import.
124 bool get isImport; 124 bool get isImport;
125 125
126 /// Is `true` if this dependency is an export. 126 /// Is `true` if this dependency is an export.
127 bool get isExport; 127 bool get isExport;
128 128
129 /// 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
130 /// [targetLibrary]. 130 /// [targetLibrary].
131 LibraryMirror get sourceLibrary; 131 LibraryMirror get sourceLibrary;
132 132
133 /// 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.
134 LibraryMirror get targetLibrary; 134 LibraryMirror get targetLibrary;
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 145
146 /// Returns a future that completes when the library is loaded and initates a 146 /// Returns a future that completes when the library is loaded and initates a
147 /// load if one has not already happened. 147 /// load if one has not already happened.
148 /*Future<LibraryMirror>*/ loadLibrary(); 148 /*Future<LibraryMirror>*/ loadLibrary();
149 } 149 }
150 150
151 /// 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.
152 abstract class CombinatorSourceMirror 152 abstract class CombinatorSourceMirror extends Mirror
153 extends Mirror implements CombinatorMirror { 153 implements CombinatorMirror {
154 /// The list of identifiers on the combinator. 154 /// The list of identifiers on the combinator.
155 List/*<String>*/ get identifiers; 155 List/*<String>*/ get identifiers;
156 156
157 /// Is `true` if this is a 'show' combinator. 157 /// Is `true` if this is a 'show' combinator.
158 bool get isShow; 158 bool get isShow;
159 159
160 /// Is `true` if this is a 'hide' combinator. 160 /// Is `true` if this is a 'hide' combinator.
161 bool get isHide; 161 bool get isHide;
162 } 162 }
163 163
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 /** 246 /**
247 * Returns the URI where the source originated. 247 * Returns the URI where the source originated.
248 */ 248 */
249 Uri get sourceUri; 249 Uri get sourceUri;
250 250
251 /** 251 /**
252 * Returns the text of this source. 252 * Returns the text of this source.
253 */ 253 */
254 String get sourceText; 254 String get sourceText;
255 } 255 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/mirrors/mirrors_util.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698