| 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 @deprecated | 5 @deprecated |
| 6 library analyzer.src.generated.sdk_io; | 6 library analyzer.src.generated.sdk_io; |
| 7 | 7 |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 JavaFile libDir = new JavaFile.relative(dir, libraryName); | 631 JavaFile libDir = new JavaFile.relative(dir, libraryName); |
| 632 JavaFile docFile = | 632 JavaFile docFile = |
| 633 new JavaFile.relative(libDir, "$libraryName$_DOC_FILE_SUFFIX"); | 633 new JavaFile.relative(libDir, "$libraryName$_DOC_FILE_SUFFIX"); |
| 634 if (docFile.exists()) { | 634 if (docFile.exists()) { |
| 635 return docFile; | 635 return docFile; |
| 636 } | 636 } |
| 637 return null; | 637 return null; |
| 638 } | 638 } |
| 639 | 639 |
| 640 @override | 640 @override |
| 641 PackageBundle getLinkedBundle() => null; |
| 642 |
| 643 @override |
| 641 String getRelativePathFromFile(JavaFile file) { | 644 String getRelativePathFromFile(JavaFile file) { |
| 642 String filePath = file.getAbsolutePath(); | 645 String filePath = file.getAbsolutePath(); |
| 643 String libPath = libraryDirectory.getAbsolutePath(); | 646 String libPath = libraryDirectory.getAbsolutePath(); |
| 644 if (!filePath.startsWith("$libPath${JavaFile.separator}")) { | 647 if (!filePath.startsWith("$libPath${JavaFile.separator}")) { |
| 645 return null; | 648 return null; |
| 646 } | 649 } |
| 647 return filePath.substring(libPath.length + 1); | 650 return filePath.substring(libPath.length + 1); |
| 648 } | 651 } |
| 649 | 652 |
| 650 /** | 653 /** |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 SdkLibrariesReader_LibraryBuilder libraryBuilder = | 792 SdkLibrariesReader_LibraryBuilder libraryBuilder = |
| 790 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); | 793 new SdkLibrariesReader_LibraryBuilder(_useDart2jsPaths); |
| 791 // If any syntactic errors were found then don't try to visit the AST | 794 // If any syntactic errors were found then don't try to visit the AST |
| 792 // structure. | 795 // structure. |
| 793 if (!errorListener.errorReported) { | 796 if (!errorListener.errorReported) { |
| 794 unit.accept(libraryBuilder); | 797 unit.accept(libraryBuilder); |
| 795 } | 798 } |
| 796 return libraryBuilder.librariesMap; | 799 return libraryBuilder.librariesMap; |
| 797 } | 800 } |
| 798 } | 801 } |
| OLD | NEW |