| 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 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 String get sdkVersion { | 411 String get sdkVersion { |
| 412 if (_sdkVersion == null) { | 412 if (_sdkVersion == null) { |
| 413 _sdkVersion = DartSdk.DEFAULT_VERSION; | 413 _sdkVersion = DartSdk.DEFAULT_VERSION; |
| 414 JavaFile revisionFile = new JavaFile.relative(_sdkDirectory, _VERSION_FILE
_NAME); | 414 JavaFile revisionFile = new JavaFile.relative(_sdkDirectory, _VERSION_FILE
_NAME); |
| 415 try { | 415 try { |
| 416 String revision = revisionFile.readAsStringSync(); | 416 String revision = revisionFile.readAsStringSync(); |
| 417 if (revision != null) { | 417 if (revision != null) { |
| 418 _sdkVersion = revision.trim(); | 418 _sdkVersion = revision.trim(); |
| 419 } | 419 } |
| 420 } on JavaIOException catch (exception) { | 420 } on JavaIOException catch (exception) { |
| 421 // Fall through to return the default. |
| 421 } | 422 } |
| 422 } | 423 } |
| 423 return _sdkVersion; | 424 return _sdkVersion; |
| 424 } | 425 } |
| 425 | 426 |
| 426 /** | 427 /** |
| 427 * Return an array containing the library URI's for the libraries defined in t
his SDK. | 428 * Return an array containing the library URI's for the libraries defined in t
his SDK. |
| 428 * | 429 * |
| 429 * @return the library URI's for the libraries defined in this SDK | 430 * @return the library URI's for the libraries defined in this SDK |
| 430 */ | 431 */ |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 Parser parser = new Parser(source, errorListener); | 606 Parser parser = new Parser(source, errorListener); |
| 606 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); | 607 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); |
| 607 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li
braryBuilder(_useDart2jsPaths); | 608 SdkLibrariesReader_LibraryBuilder libraryBuilder = new SdkLibrariesReader_Li
braryBuilder(_useDart2jsPaths); |
| 608 // If any syntactic errors were found then don't try to visit the AST struct
ure. | 609 // If any syntactic errors were found then don't try to visit the AST struct
ure. |
| 609 if (!errorListener.errorReported) { | 610 if (!errorListener.errorReported) { |
| 610 unit.accept(libraryBuilder); | 611 unit.accept(libraryBuilder); |
| 611 } | 612 } |
| 612 return libraryBuilder.librariesMap; | 613 return libraryBuilder.librariesMap; |
| 613 } | 614 } |
| 614 } | 615 } |
| OLD | NEW |