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

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

Issue 2242963002: Add DartSdk.getLinkedBundle() and use it in PubSummaryManager. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk.dart ('k') | pkg/analyzer/lib/src/summary/pub_summary.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 @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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk.dart ('k') | pkg/analyzer/lib/src/summary/pub_summary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698