| 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 'dart:io'; |
| 11 |
| 10 import 'package:analyzer/src/generated/java_engine.dart'; | 12 import 'package:analyzer/src/generated/java_engine.dart'; |
| 11 | 13 |
| 12 import 'ast.dart'; | 14 import 'ast.dart'; |
| 13 import 'engine.dart'; | 15 import 'engine.dart'; |
| 14 import 'error.dart'; | 16 import 'error.dart'; |
| 15 import 'java_core.dart'; | 17 import 'java_core.dart'; |
| 16 import 'java_engine_io.dart'; | 18 import 'java_engine_io.dart'; |
| 17 import 'java_io.dart'; | 19 import 'java_io.dart'; |
| 18 import 'parser.dart'; | 20 import 'parser.dart'; |
| 19 import 'scanner.dart'; | 21 import 'scanner.dart'; |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 String get sdkVersion { | 396 String get sdkVersion { |
| 395 if (_sdkVersion == null) { | 397 if (_sdkVersion == null) { |
| 396 _sdkVersion = DartSdk.DEFAULT_VERSION; | 398 _sdkVersion = DartSdk.DEFAULT_VERSION; |
| 397 JavaFile revisionFile = | 399 JavaFile revisionFile = |
| 398 new JavaFile.relative(_sdkDirectory, _VERSION_FILE_NAME); | 400 new JavaFile.relative(_sdkDirectory, _VERSION_FILE_NAME); |
| 399 try { | 401 try { |
| 400 String revision = revisionFile.readAsStringSync(); | 402 String revision = revisionFile.readAsStringSync(); |
| 401 if (revision != null) { | 403 if (revision != null) { |
| 402 _sdkVersion = revision.trim(); | 404 _sdkVersion = revision.trim(); |
| 403 } | 405 } |
| 404 } on JavaIOException catch (exception) { | 406 } on FileSystemException catch (exception) { |
| 405 // Fall through to return the default. | 407 // Fall through to return the default. |
| 406 } | 408 } |
| 407 } | 409 } |
| 408 return _sdkVersion; | 410 return _sdkVersion; |
| 409 } | 411 } |
| 410 | 412 |
| 411 /** | 413 /** |
| 412 * Return an array containing the library URI's for the libraries defined in t
his SDK. | 414 * Return an array containing the library URI's for the libraries defined in t
his SDK. |
| 413 * | 415 * |
| 414 * @return the library URI's for the libraries defined in this SDK | 416 * @return the library URI's for the libraries defined in this SDK |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 SdkLibrariesReader_LibraryBuilder libraryBuilder = | 645 SdkLibrariesReader_LibraryBuilder libraryBuilder = |
| 644 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); | 646 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); |
| 645 // If any syntactic errors were found then don't try to visit the AST | 647 // If any syntactic errors were found then don't try to visit the AST |
| 646 // structure. | 648 // structure. |
| 647 if (!errorListener.errorReported) { | 649 if (!errorListener.errorReported) { |
| 648 unit.accept(libraryBuilder); | 650 unit.accept(libraryBuilder); |
| 649 } | 651 } |
| 650 return libraryBuilder.librariesMap; | 652 return libraryBuilder.librariesMap; |
| 651 } | 653 } |
| 652 } | 654 } |
| OLD | NEW |