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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/sdk.dart

Issue 17249003: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.sdk; 3 library engine.sdk;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'java_engine.dart'; 5 import 'java_engine.dart';
6 import 'source.dart' show ContentCache, Source, UriKind; 6 import 'source.dart' show ContentCache, Source, UriKind;
7 import 'engine.dart' show AnalysisContext; 7 import 'engine.dart' show AnalysisContext;
8 /** 8 /**
9 * Represents a single library in the SDK 9 * Represents a single library in the SDK
10 */ 10 */
11 abstract class SdkLibrary { 11 abstract class SdkLibrary {
12 12
13 /** 13 /**
14 * Return the name of the category containing the library. 14 * Return the name of the category containing the library.
15 * @return the name of the category containing the library 15 * @return the name of the category containing the library
16 */ 16 */
17 String get category; 17 String get category;
18 18
19 /** 19 /**
20 * Return the path to the file defining the library. The path is relative to t he {@code lib}directory within the SDK. 20 * Return the path to the file defining the library. The path is relative to t he `lib`directory within the SDK.
21 * @return the path to the file defining the library 21 * @return the path to the file defining the library
22 */ 22 */
23 String get path; 23 String get path;
24 24
25 /** 25 /**
26 * Return the short name of the library. This is the name used after {@code da rt:} in a URI. 26 * Return the short name of the library. This is the name used after `dart:` i n a URI.
27 * @return the short name of the library 27 * @return the short name of the library
28 */ 28 */
29 String get shortName; 29 String get shortName;
30 30
31 /** 31 /**
32 * Return {@code true} if this library can be compiled to JavaScript by dart2j s. 32 * Return `true` if this library can be compiled to JavaScript by dart2js.
33 * @return {@code true} if this library can be compiled to JavaScript by dart2 js 33 * @return `true` if this library can be compiled to JavaScript by dart2js
34 */ 34 */
35 bool isDart2JsLibrary(); 35 bool isDart2JsLibrary();
36 36
37 /** 37 /**
38 * Return {@code true} if the library is documented. 38 * Return `true` if the library is documented.
39 * @return {@code true} if the library is documented 39 * @return `true` if the library is documented
40 */ 40 */
41 bool isDocumented(); 41 bool isDocumented();
42 42
43 /** 43 /**
44 * Return {@code true} if the library is an implementation library. 44 * Return `true` if the library is an implementation library.
45 * @return {@code true} if the library is an implementation library 45 * @return `true` if the library is an implementation library
46 */ 46 */
47 bool isImplementation(); 47 bool isImplementation();
48 48
49 /** 49 /**
50 * Return {@code true} if library is internal can be used only by other SDK li braries. 50 * Return `true` if library is internal can be used only by other SDK librarie s.
51 * @return {@code true} if library is internal can be used only by other SDK l ibraries 51 * @return `true` if library is internal can be used only by other SDK librari es
52 */ 52 */
53 bool isInternal(); 53 bool isInternal();
54 54
55 /** 55 /**
56 * Return {@code true} if library can be used for both client and server. 56 * Return `true` if library can be used for both client and server.
57 * @return {@code true} if this library can be used for both client and server . 57 * @return `true` if this library can be used for both client and server.
58 */ 58 */
59 bool isShared(); 59 bool isShared();
60 60
61 /** 61 /**
62 * Return {@code true} if this library can be run on the VM. 62 * Return `true` if this library can be run on the VM.
63 * @return {@code true} if this library can be run on the VM 63 * @return `true` if this library can be run on the VM
64 */ 64 */
65 bool isVmLibrary(); 65 bool isVmLibrary();
66 } 66 }
67 /** 67 /**
68 * Instances of the class {@code SdkLibrary} represent the information known abo ut a single library 68 * Instances of the class `SdkLibrary` represent the information known about a s ingle library
69 * within the SDK. 69 * within the SDK.
70 * @coverage dart.engine.sdk 70 * @coverage dart.engine.sdk
71 */ 71 */
72 class SdkLibraryImpl implements SdkLibrary { 72 class SdkLibraryImpl implements SdkLibrary {
73 73
74 /** 74 /**
75 * The short name of the library. This is the name used after {@code dart:} in a URI. 75 * The short name of the library. This is the name used after `dart:` in a URI .
76 */ 76 */
77 String _shortName = null; 77 String _shortName = null;
78 78
79 /** 79 /**
80 * The path to the file defining the library. The path is relative to the {@co de lib} directory 80 * The path to the file defining the library. The path is relative to the `lib ` directory
81 * within the SDK. 81 * within the SDK.
82 */ 82 */
83 String _path = null; 83 String _path = null;
84 84
85 /** 85 /**
86 * The name of the category containing the library. Unless otherwise specified in the libraries 86 * The name of the category containing the library. Unless otherwise specified in the libraries
87 * file all libraries are assumed to be shared between server and client. 87 * file all libraries are assumed to be shared between server and client.
88 */ 88 */
89 String _category = "Shared"; 89 String _category = "Shared";
90 90
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 String get category => _category; 125 String get category => _category;
126 String get path => _path; 126 String get path => _path;
127 String get shortName => _shortName; 127 String get shortName => _shortName;
128 bool isDart2JsLibrary() => (_platforms & DART2JS_PLATFORM) != 0; 128 bool isDart2JsLibrary() => (_platforms & DART2JS_PLATFORM) != 0;
129 bool isDocumented() => _documented; 129 bool isDocumented() => _documented;
130 bool isImplementation() => _implementation; 130 bool isImplementation() => _implementation;
131 bool isInternal() => "Internal" == _category; 131 bool isInternal() => "Internal" == _category;
132 132
133 /** 133 /**
134 * Return {@code true} if library can be used for both client and server 134 * Return `true` if library can be used for both client and server
135 */ 135 */
136 bool isShared() => _category == "Shared"; 136 bool isShared() => _category == "Shared";
137 137
138 /** 138 /**
139 * Return {@code true} if this library can be run on the VM. 139 * Return `true` if this library can be run on the VM.
140 * @return {@code true} if this library can be run on the VM 140 * @return `true` if this library can be run on the VM
141 */ 141 */
142 bool isVmLibrary() => (_platforms & VM_PLATFORM) != 0; 142 bool isVmLibrary() => (_platforms & VM_PLATFORM) != 0;
143 143
144 /** 144 /**
145 * Set the name of the category containing the library to the given name. 145 * Set the name of the category containing the library to the given name.
146 * @param category the name of the category containing the library 146 * @param category the name of the category containing the library
147 */ 147 */
148 void set category(String category2) { 148 void set category(String category2) {
149 this._category = category2; 149 this._category = category2;
150 } 150 }
151 151
152 /** 152 /**
153 * Record that this library can be compiled to JavaScript by dart2js. 153 * Record that this library can be compiled to JavaScript by dart2js.
154 */ 154 */
155 void setDart2JsLibrary() { 155 void setDart2JsLibrary() {
156 _platforms |= DART2JS_PLATFORM; 156 _platforms |= DART2JS_PLATFORM;
157 } 157 }
158 158
159 /** 159 /**
160 * Set whether the library is documented to match the given value. 160 * Set whether the library is documented to match the given value.
161 * @param documented {@code true} if the library is documented 161 * @param documented `true` if the library is documented
162 */ 162 */
163 void set documented(bool documented2) { 163 void set documented(bool documented2) {
164 this._documented = documented2; 164 this._documented = documented2;
165 } 165 }
166 166
167 /** 167 /**
168 * Set whether the library is an implementation library to match the given val ue. 168 * Set whether the library is an implementation library to match the given val ue.
169 * @param implementation {@code true} if the library is an implementation libr ary 169 * @param implementation `true` if the library is an implementation library
170 */ 170 */
171 void set implementation(bool implementation2) { 171 void set implementation(bool implementation2) {
172 this._implementation = implementation2; 172 this._implementation = implementation2;
173 } 173 }
174 174
175 /** 175 /**
176 * Set the path to the file defining the library to the given path. The path i s relative to the{@code lib} directory within the SDK. 176 * Set the path to the file defining the library to the given path. The path i s relative to the`lib` directory within the SDK.
177 * @param path the path to the file defining the library 177 * @param path the path to the file defining the library
178 */ 178 */
179 void set path(String path2) { 179 void set path(String path2) {
180 this._path = path2; 180 this._path = path2;
181 } 181 }
182 182
183 /** 183 /**
184 * Record that this library can be run on the VM. 184 * Record that this library can be run on the VM.
185 */ 185 */
186 void setVmLibrary() { 186 void setVmLibrary() {
187 _platforms |= VM_PLATFORM; 187 _platforms |= VM_PLATFORM;
188 } 188 }
189 } 189 }
190 /** 190 /**
191 * Instances of the class {@code LibraryMap} map Dart library URI's to the {@lin k SdkLibraryImpllibrary}. 191 * Instances of the class `LibraryMap` map Dart library URI's to the [SdkLibrary Impllibrary].
192 * @coverage dart.engine.sdk 192 * @coverage dart.engine.sdk
193 */ 193 */
194 class LibraryMap { 194 class LibraryMap {
195 195
196 /** 196 /**
197 * A table mapping Dart library URI's to the library. 197 * A table mapping Dart library URI's to the library.
198 */ 198 */
199 Map<String, SdkLibraryImpl> _libraryMap = new Map<String, SdkLibraryImpl>(); 199 Map<String, SdkLibraryImpl> _libraryMap = new Map<String, SdkLibraryImpl>();
200 200
201 /** 201 /**
202 * Return the library with the given URI, or {@code null} if the URI does not map to a library. 202 * Return the library with the given URI, or `null` if the URI does not map to a library.
203 * @param dartUri the URI of the library to be returned 203 * @param dartUri the URI of the library to be returned
204 * @return the library with the given URI 204 * @return the library with the given URI
205 */ 205 */
206 SdkLibrary getLibrary(String dartUri) => _libraryMap[dartUri]; 206 SdkLibrary getLibrary(String dartUri) => _libraryMap[dartUri];
207 207
208 /** 208 /**
209 * Return an array containing all the sdk libraries {@link SdkLibraryImpl} in the mapping 209 * Return an array containing all the sdk libraries [SdkLibraryImpl] in the ma pping
210 * @return the sdk libraries in the mapping 210 * @return the sdk libraries in the mapping
211 */ 211 */
212 List<SdkLibrary> get sdkLibraries => new List.from(_libraryMap.values); 212 List<SdkLibrary> get sdkLibraries => new List.from(_libraryMap.values);
213 213
214 /** 214 /**
215 * Return an array containing the library URI's for which a mapping is availab le. 215 * Return an array containing the library URI's for which a mapping is availab le.
216 * @return the library URI's for which a mapping is available 216 * @return the library URI's for which a mapping is available
217 */ 217 */
218 List<String> get uris => new List.from(_libraryMap.keys.toSet()); 218 List<String> get uris => new List.from(_libraryMap.keys.toSet());
219 219
220 /** 220 /**
221 * Return the library with the given URI, or {@code null} if the URI does not map to a library. 221 * Return the library with the given URI, or `null` if the URI does not map to a library.
222 * @param dartUri the URI of the library to be returned 222 * @param dartUri the URI of the library to be returned
223 * @param library the library with the given URI 223 * @param library the library with the given URI
224 */ 224 */
225 void setLibrary(String dartUri, SdkLibraryImpl library) { 225 void setLibrary(String dartUri, SdkLibraryImpl library) {
226 _libraryMap[dartUri] = library; 226 _libraryMap[dartUri] = library;
227 } 227 }
228 228
229 /** 229 /**
230 * Return the number of library URI's for which a mapping is available. 230 * Return the number of library URI's for which a mapping is available.
231 * @return the number of library URI's for which a mapping is available 231 * @return the number of library URI's for which a mapping is available
232 */ 232 */
233 int size() => _libraryMap.length; 233 int size() => _libraryMap.length;
234 } 234 }
235 /** 235 /**
236 * Instances of the class {@code DartSdk} represent a Dart SDK installed in a sp ecified location. 236 * Instances of the class `DartSdk` represent a Dart SDK installed in a specifie d location.
237 * @coverage dart.engine.sdk 237 * @coverage dart.engine.sdk
238 */ 238 */
239 abstract class DartSdk { 239 abstract class DartSdk {
240 240
241 /** 241 /**
242 * The short name of the dart SDK core library. 242 * The short name of the dart SDK core library.
243 */ 243 */
244 static final String DART_CORE = "dart:core"; 244 static final String DART_CORE = "dart:core";
245 245
246 /** 246 /**
(...skipping 10 matching lines...) Expand all
257 * Return the source representing the file with the given URI. 257 * Return the source representing the file with the given URI.
258 * @param contentCache the content cache used to access the contents of the ma pped source 258 * @param contentCache the content cache used to access the contents of the ma pped source
259 * @param kind the kind of URI that was originally resolved in order to produc e an encoding with 259 * @param kind the kind of URI that was originally resolved in order to produc e an encoding with
260 * the given URI 260 * the given URI
261 * @param uri the URI of the file to be returned 261 * @param uri the URI of the file to be returned
262 * @return the source representing the specified file 262 * @return the source representing the specified file
263 */ 263 */
264 Source fromEncoding(ContentCache contentCache, UriKind kind, Uri uri); 264 Source fromEncoding(ContentCache contentCache, UriKind kind, Uri uri);
265 265
266 /** 266 /**
267 * Return the {@link AnalysisContext} used for all of the sources in this {@li nk DartSdk}. 267 * Return the [AnalysisContext] used for all of the sources in this [DartSdk].
268 * @return the {@link AnalysisContext} used for all of the sources in this {@l ink DartSdk} 268 * @return the [AnalysisContext] used for all of the sources in this [DartSdk]
269 */ 269 */
270 AnalysisContext get context; 270 AnalysisContext get context;
271 271
272 /** 272 /**
273 * Return an array containing all of the libraries defined in this SDK. 273 * Return an array containing all of the libraries defined in this SDK.
274 * @return the libraries defined in this SDK 274 * @return the libraries defined in this SDK
275 */ 275 */
276 List<SdkLibrary> get sdkLibraries; 276 List<SdkLibrary> get sdkLibraries;
277 277
278 /** 278 /**
279 * Return the library representing the library with the given {@code dart:} UR I, or {@code null}if the given URI does not denote a library in this SDK. 279 * Return the library representing the library with the given `dart:` URI, or `null`if the given URI does not denote a library in this SDK.
280 * @param dartUri the URI of the library to be returned 280 * @param dartUri the URI of the library to be returned
281 * @return the SDK library object 281 * @return the SDK library object
282 */ 282 */
283 SdkLibrary getSdkLibrary(String dartUri); 283 SdkLibrary getSdkLibrary(String dartUri);
284 284
285 /** 285 /**
286 * Return the revision number of this SDK, or {@code "0"} if the revision numb er cannot be 286 * Return the revision number of this SDK, or `"0"` if the revision number can not be
287 * discovered. 287 * discovered.
288 * @return the revision number of this SDK 288 * @return the revision number of this SDK
289 */ 289 */
290 String get sdkVersion; 290 String get sdkVersion;
291 291
292 /** 292 /**
293 * Return an array containing the library URI's for the libraries defined in t his SDK. 293 * Return an array containing the library URI's for the libraries defined in t his SDK.
294 * @return the library URI's for the libraries defined in this SDK 294 * @return the library URI's for the libraries defined in this SDK
295 */ 295 */
296 List<String> get uris; 296 List<String> get uris;
297 297
298 /** 298 /**
299 * Return the source representing the library with the given {@code dart:} URI , or {@code null} if 299 * Return the source representing the library with the given `dart:` URI, or ` null` if
300 * the given URI does not denote a library in this SDK. 300 * the given URI does not denote a library in this SDK.
301 * @param contentCache the content cache used to access the contents of the ma pped source 301 * @param contentCache the content cache used to access the contents of the ma pped source
302 * @param dartUri the URI of the library to be returned 302 * @param dartUri the URI of the library to be returned
303 * @return the source representing the specified library 303 * @return the source representing the specified library
304 */ 304 */
305 Source mapDartUri(ContentCache contentCache, String dartUri); 305 Source mapDartUri(ContentCache contentCache, String dartUri);
306 } 306 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/scanner.dart ('k') | pkg/analyzer_experimental/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698