| OLD | NEW |
| 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 'package:analyzer/src/generated/java_engine.dart'; | 10 import 'package:analyzer/src/generated/java_engine.dart'; |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 return new SdkLibrariesReader(useDart2jsPaths).readFromFile(librariesFile,
contents); | 505 return new SdkLibrariesReader(useDart2jsPaths).readFromFile(librariesFile,
contents); |
| 506 } catch (exception, stackTrace) { | 506 } catch (exception, stackTrace) { |
| 507 AnalysisEngine.instance.logger.logError( | 507 AnalysisEngine.instance.logger.logError( |
| 508 "Could not initialize the library map from ${librariesFile.getAbsolute
Path()}", | 508 "Could not initialize the library map from ${librariesFile.getAbsolute
Path()}", |
| 509 new CaughtException(exception, stackTrace)); | 509 new CaughtException(exception, stackTrace)); |
| 510 return new LibraryMap(); | 510 return new LibraryMap(); |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 | 513 |
| 514 /** | 514 /** |
| 515 * Ensure that the dart VM is executable. If it is not, make it executable and
log that it was | |
| 516 * necessary for us to do so. | |
| 517 */ | |
| 518 void _ensureVmIsExecutable() { | |
| 519 } | |
| 520 | |
| 521 /** | |
| 522 * Return the name of the file containing the Dartium executable. | 515 * Return the name of the file containing the Dartium executable. |
| 523 * | 516 * |
| 524 * @return the name of the file containing the Dartium executable | 517 * @return the name of the file containing the Dartium executable |
| 525 */ | 518 */ |
| 526 String get dartiumBinaryName { | 519 String get dartiumBinaryName { |
| 527 if (OSUtilities.isWindows()) { | 520 if (OSUtilities.isWindows()) { |
| 528 return _DARTIUM_EXECUTABLE_NAME_WIN; | 521 return _DARTIUM_EXECUTABLE_NAME_WIN; |
| 529 } else if (OSUtilities.isMac()) { | 522 } else if (OSUtilities.isMac()) { |
| 530 return _DARTIUM_EXECUTABLE_NAME_MAC; | 523 return _DARTIUM_EXECUTABLE_NAME_MAC; |
| 531 } else { | 524 } else { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 Parser parser = new Parser(source, errorListener); | 607 Parser parser = new Parser(source, errorListener); |
| 615 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); | 608 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); |
| 616 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li
braryBuilder(_useDart2jsPaths); | 609 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li
braryBuilder(_useDart2jsPaths); |
| 617 // If any syntactic errors were found then don't try to visit the AST struct
ure. | 610 // If any syntactic errors were found then don't try to visit the AST struct
ure. |
| 618 if (!errorListener.errorReported) { | 611 if (!errorListener.errorReported) { |
| 619 unit.accept(libraryBuilder); | 612 unit.accept(libraryBuilder); |
| 620 } | 613 } |
| 621 return libraryBuilder.librariesMap; | 614 return libraryBuilder.librariesMap; |
| 622 } | 615 } |
| 623 } | 616 } |
| OLD | NEW |