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

Side by Side Diff: pkg/analyzer-experimental/lib/src/generated/sdk.dart

Issue 12671003: Push new analyzer-experimental with Resolver and ResolverTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 // 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 3
4 library engine.sdk; 4 library engine.sdk;
5 5
6 import 'dart:io'; 6 import 'dart:io';
7 import 'dart:uri'; 7 import 'dart:uri';
8 import 'java_core.dart'; 8 import 'java_core.dart';
9 import 'java_io.dart'; 9 import 'java_io.dart';
10 import 'java_engine.dart'; 10 import 'java_engine.dart';
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool isShared(); 57 bool isShared();
58 /** 58 /**
59 * Return {@code true} if this library can be run on the VM. 59 * Return {@code true} if this library can be run on the VM.
60 * @return {@code true} if this library can be run on the VM 60 * @return {@code true} if this library can be run on the VM
61 */ 61 */
62 bool isVmLibrary(); 62 bool isVmLibrary();
63 } 63 }
64 /** 64 /**
65 * Instances of the class {@code SdkLibrary} represent the information known abo ut a single library 65 * Instances of the class {@code SdkLibrary} represent the information known abo ut a single library
66 * within the SDK. 66 * within the SDK.
67 * @coverage dart.engine.sdk
67 */ 68 */
68 class SdkLibraryImpl implements SdkLibrary { 69 class SdkLibraryImpl implements SdkLibrary {
69 /** 70 /**
70 * The short name of the library. This is the name used after {@code dart:} in a URI. 71 * The short name of the library. This is the name used after {@code dart:} in a URI.
71 */ 72 */
72 String _shortName = null; 73 String _shortName = null;
73 /** 74 /**
74 * The path to the file defining the library. The path is relative to the {@co de lib} directory 75 * The path to the file defining the library. The path is relative to the {@co de lib} directory
75 * within the SDK. 76 * within the SDK.
76 */ 77 */
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 * "builtin" : const LibraryInfo( 179 * "builtin" : const LibraryInfo(
179 * "builtin/builtin_runtime.dart", 180 * "builtin/builtin_runtime.dart",
180 * category: "Server", 181 * category: "Server",
181 * platforms: VM_PLATFORM), 182 * platforms: VM_PLATFORM),
182 * "compiler" : const LibraryInfo( 183 * "compiler" : const LibraryInfo(
183 * "compiler/compiler.dart", 184 * "compiler/compiler.dart",
184 * category: "Tools", 185 * category: "Tools",
185 * platforms: 0), 186 * platforms: 0),
186 * }; 187 * };
187 * </pre> 188 * </pre>
189 * @coverage dart.engine.sdk
188 */ 190 */
189 class SdkLibrariesReader { 191 class SdkLibrariesReader {
190 /** 192 /**
191 * Return the library map read from the given source. 193 * Return the library map read from the given source.
192 * @return the library map read from the given source 194 * @return the library map read from the given source
193 */ 195 */
194 LibraryMap readFrom(JavaFile librariesFile, String libraryFileContents) { 196 LibraryMap readFrom(JavaFile librariesFile, String libraryFileContents) {
195 List<bool> foundError = [false]; 197 List<bool> foundError = [false];
196 AnalysisErrorListener errorListener = new AnalysisErrorListener_5(foundError ); 198 AnalysisErrorListener errorListener = new AnalysisErrorListener_6(foundError );
197 Source source = new FileBasedSource.con2(null, librariesFile, false); 199 Source source = new FileBasedSource.con2(null, librariesFile, false);
198 StringScanner scanner = new StringScanner(source, libraryFileContents, error Listener); 200 StringScanner scanner = new StringScanner(source, libraryFileContents, error Listener);
199 Parser parser = new Parser(source, errorListener); 201 Parser parser = new Parser(source, errorListener);
200 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); 202 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
201 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder(); 203 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder();
202 if (!foundError[0]) { 204 if (!foundError[0]) {
203 unit.accept(libraryBuilder); 205 unit.accept(libraryBuilder);
204 } 206 }
205 return libraryBuilder.librariesMap; 207 return libraryBuilder.librariesMap;
206 } 208 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 279 }
278 } 280 }
279 } 281 }
280 } 282 }
281 } 283 }
282 _librariesMap.setLibrary(libraryName, library); 284 _librariesMap.setLibrary(libraryName, library);
283 } 285 }
284 return null; 286 return null;
285 } 287 }
286 } 288 }
287 class AnalysisErrorListener_5 implements AnalysisErrorListener { 289 class AnalysisErrorListener_6 implements AnalysisErrorListener {
288 List<bool> foundError; 290 List<bool> foundError;
289 AnalysisErrorListener_5(this.foundError); 291 AnalysisErrorListener_6(this.foundError);
290 void onError(AnalysisError error) { 292 void onError(AnalysisError error) {
291 foundError[0] = true; 293 foundError[0] = true;
292 } 294 }
293 } 295 }
294 /** 296 /**
295 * Instances of the class {@code LibraryMap} map Dart library URI's to the {@lin k SdkLibraryImpllibrary}. 297 * Instances of the class {@code LibraryMap} map Dart library URI's to the {@lin k SdkLibraryImpllibrary}.
298 * @coverage dart.engine.sdk
296 */ 299 */
297 class LibraryMap { 300 class LibraryMap {
298 /** 301 /**
299 * A table mapping Dart library URI's to the library. 302 * A table mapping Dart library URI's to the library.
300 */ 303 */
301 Map<String, SdkLibraryImpl> _libraryMap = new Map<String, SdkLibraryImpl>(); 304 Map<String, SdkLibraryImpl> _libraryMap = new Map<String, SdkLibraryImpl>();
302 /** 305 /**
303 * Initialize a newly created library map to be empty. 306 * Initialize a newly created library map to be empty.
304 */ 307 */
305 LibraryMap() : super() { 308 LibraryMap() : super() {
(...skipping 23 matching lines...) Expand all
329 _libraryMap[dartUri] = library; 332 _libraryMap[dartUri] = library;
330 } 333 }
331 /** 334 /**
332 * Return the number of library URI's for which a mapping is available. 335 * Return the number of library URI's for which a mapping is available.
333 * @return the number of library URI's for which a mapping is available 336 * @return the number of library URI's for which a mapping is available
334 */ 337 */
335 int size() => _libraryMap.length; 338 int size() => _libraryMap.length;
336 } 339 }
337 /** 340 /**
338 * Instances of the class {@code DartSdk} represent a Dart SDK installed in a sp ecified location. 341 * Instances of the class {@code DartSdk} represent a Dart SDK installed in a sp ecified location.
342 * @coverage dart.engine.sdk
339 */ 343 */
340 class DartSdk { 344 class DartSdk {
341 /** 345 /**
342 * The short name of the dart SDK core library. 346 * The short name of the dart SDK core library.
343 */ 347 */
344 static String DART_CORE = "dart:core"; 348 static String DART_CORE = "dart:core";
345 /** 349 /**
346 * The short name of the dart SDK html library. 350 * The short name of the dart SDK html library.
347 */ 351 */
348 static String DART_HTML = "dart:html"; 352 static String DART_HTML = "dart:html";
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 } 663 }
660 /** 664 /**
661 * Initialize the state of the SDK. 665 * Initialize the state of the SDK.
662 */ 666 */
663 void initializeSdk() { 667 void initializeSdk() {
664 if (!OSUtilities.isWindows()) { 668 if (!OSUtilities.isWindows()) {
665 ensureVmIsExecutable(); 669 ensureVmIsExecutable();
666 } 670 }
667 } 671 }
668 } 672 }
OLDNEW
« no previous file with comments | « pkg/analyzer-experimental/lib/src/generated/scanner.dart ('k') | pkg/analyzer-experimental/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698