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

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

Issue 214593008: Rollback pkg/analyzer that breaks code_transformers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk.dart ('k') | pkg/analyzer/lib/src/generated/source.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.sdk.io; 8 library engine.sdk.io;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 * "compiler/compiler.dart", 426 * "compiler/compiler.dart",
427 * category: "Tools", 427 * category: "Tools",
428 * platforms: 0), 428 * platforms: 0),
429 * }; 429 * };
430 * </pre> 430 * </pre>
431 */ 431 */
432 class SdkLibrariesReader { 432 class SdkLibrariesReader {
433 /** 433 /**
434 * A flag indicating whether the dart2js path should be used when it is availa ble. 434 * A flag indicating whether the dart2js path should be used when it is availa ble.
435 */ 435 */
436 final bool _useDart2jsPaths; 436 bool _useDart2jsPaths = false;
437 437
438 /** 438 /**
439 * Initialize a newly created library reader to use the dart2js path if the gi ven value is 439 * Initialize a newly created library reader to use the dart2js path if the gi ven value is
440 * `true`. 440 * `true`.
441 * 441 *
442 * @param useDart2jsPaths `true` if the dart2js path should be used when it is available 442 * @param useDart2jsPaths `true` if the dart2js path should be used when it is available
443 */ 443 */
444 SdkLibrariesReader(this._useDart2jsPaths); 444 SdkLibrariesReader(bool useDart2jsPaths) {
445 this._useDart2jsPaths = useDart2jsPaths;
446 }
445 447
446 /** 448 /**
447 * Return the library map read from the given source. 449 * Return the library map read from the given source.
448 * 450 *
449 * @param file the [File] of the library file 451 * @param file the [File] of the library file
450 * @param libraryFileContents the contents from the library file 452 * @param libraryFileContents the contents from the library file
451 * @return the library map read from the given source 453 * @return the library map read from the given source
452 */ 454 */
453 LibraryMap readFromFile(JavaFile file, String libraryFileContents) => readFrom Source(new FileBasedSource.con2(file, UriKind.FILE_URI), libraryFileContents); 455 LibraryMap readFromFile(JavaFile file, String libraryFileContents) => readFrom Source(new FileBasedSource.con2(file, UriKind.FILE_URI), libraryFileContents);
454 456
(...skipping 10 matching lines...) Expand all
465 Parser parser = new Parser(source, errorListener); 467 Parser parser = new Parser(source, errorListener);
466 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); 468 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
467 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder(_useDart2jsPaths); 469 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li braryBuilder(_useDart2jsPaths);
468 // If any syntactic errors were found then don't try to visit the AST struct ure. 470 // If any syntactic errors were found then don't try to visit the AST struct ure.
469 if (!errorListener.errorReported) { 471 if (!errorListener.errorReported) {
470 unit.accept(libraryBuilder); 472 unit.accept(libraryBuilder);
471 } 473 }
472 return libraryBuilder.librariesMap; 474 return libraryBuilder.librariesMap;
473 } 475 }
474 } 476 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698