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

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

Issue 42863002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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.io; 3 library engine.sdk.io;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'java_io.dart'; 5 import 'java_io.dart';
6 import 'java_engine_io.dart'; 6 import 'java_engine_io.dart';
7 import 'source_io.dart'; 7 import 'source_io.dart';
8 import 'error.dart'; 8 import 'error.dart';
9 import 'scanner.dart'; 9 import 'scanner.dart';
10 import 'ast.dart'; 10 import 'ast.dart';
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 */ 458 */
459 class SdkLibrariesReader { 459 class SdkLibrariesReader {
460 460
461 /** 461 /**
462 * Return the library map read from the given source. 462 * Return the library map read from the given source.
463 * 463 *
464 * @return the library map read from the given source 464 * @return the library map read from the given source
465 */ 465 */
466 LibraryMap readFrom(JavaFile librariesFile, String libraryFileContents) { 466 LibraryMap readFrom(JavaFile librariesFile, String libraryFileContents) {
467 List<bool> foundError = [false]; 467 List<bool> foundError = [false];
468 AnalysisErrorListener errorListener = new AnalysisErrorListener_8(foundError ); 468 AnalysisErrorListener errorListener = new AnalysisErrorListener_10(foundErro r);
469 Source source = new FileBasedSource.con2(null, librariesFile, UriKind.FILE_U RI); 469 Source source = new FileBasedSource.con2(null, librariesFile, UriKind.FILE_U RI);
470 StringScanner scanner = new StringScanner(source, libraryFileContents, error Listener); 470 Scanner scanner = new Scanner(source, new CharSequenceReader(new CharSequenc e(libraryFileContents)), errorListener);
471 Parser parser = new Parser(source, errorListener); 471 Parser parser = new Parser(source, errorListener);
472 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); 472 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
473 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder(); 473 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder();
474 if (!foundError[0]) { 474 if (!foundError[0]) {
475 unit.accept(libraryBuilder); 475 unit.accept(libraryBuilder);
476 } 476 }
477 return libraryBuilder.librariesMap; 477 return libraryBuilder.librariesMap;
478 } 478 }
479 } 479 }
480 class SdkLibrariesReader_LibraryBuilder extends RecursiveASTVisitor<Object> { 480 class SdkLibrariesReader_LibraryBuilder extends RecursiveASTVisitor<Object> {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 } 550 }
551 } 551 }
552 } 552 }
553 } 553 }
554 } 554 }
555 librariesMap.setLibrary(libraryName, library); 555 librariesMap.setLibrary(libraryName, library);
556 } 556 }
557 return null; 557 return null;
558 } 558 }
559 } 559 }
560 class AnalysisErrorListener_8 implements AnalysisErrorListener { 560 class AnalysisErrorListener_10 implements AnalysisErrorListener {
561 List<bool> foundError; 561 List<bool> foundError;
562 AnalysisErrorListener_8(this.foundError); 562 AnalysisErrorListener_10(this.foundError);
563 void onError(AnalysisError error) { 563 void onError(AnalysisError error) {
564 foundError[0] = true; 564 foundError[0] = true;
565 } 565 }
566 } 566 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698