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

Unified Diff: pkg/analyzer/lib/src/generated/sdk_io.dart

Issue 1725913002: Add file hashes to SdkBundle; rename to PackageBundle. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | pkg/analyzer/lib/src/summary/idl.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/sdk_io.dart
diff --git a/pkg/analyzer/lib/src/generated/sdk_io.dart b/pkg/analyzer/lib/src/generated/sdk_io.dart
index 2378910192776378fefd5383b4b0739f421dd264..e7a9dea30194b81d94102ea65bd55b7b6d4fc78a 100644
--- a/pkg/analyzer/lib/src/generated/sdk_io.dart
+++ b/pkg/analyzer/lib/src/generated/sdk_io.dart
@@ -20,7 +20,7 @@ import 'package:analyzer/src/generated/java_io.dart';
import 'package:analyzer/src/generated/parser.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer/src/generated/source_io.dart';
-import 'package:analyzer/src/summary/idl.dart' show SdkBundle;
+import 'package:analyzer/src/summary/idl.dart' show PackageBundle;
import 'package:analyzer/src/summary/summary_sdk.dart';
import 'package:path/path.dart' as pathos;
@@ -266,7 +266,7 @@ class DirectoryBasedDartSdk implements DartSdk {
_analysisContext.sourceFactory = factory;
// Try to use summaries.
if (_useSummary) {
- SdkBundle sdkBundle = _getSummarySdkBundle();
+ PackageBundle sdkBundle = _getSummarySdkBundle();
if (sdkBundle != null) {
_analysisContext.resultProvider =
new SdkSummaryResultProvider(_analysisContext, sdkBundle);
@@ -553,16 +553,16 @@ class DirectoryBasedDartSdk implements DartSdk {
}
/**
- * Return the [SdkBundle] for this SDK, if it exists, or `null` otherwise.
+ * Return the [PackageBundle] for this SDK, if it exists, or `null` otherwise.
*/
- SdkBundle _getSummarySdkBundle() {
+ PackageBundle _getSummarySdkBundle() {
String rootPath = directory.getAbsolutePath();
String path = pathos.join(rootPath, 'lib', '_internal', 'spec.sum');
try {
File file = new File(path);
if (file.existsSync()) {
List<int> bytes = file.readAsBytesSync();
- return new SdkBundle.fromBuffer(bytes);
+ return new PackageBundle.fromBuffer(bytes);
}
} catch (exception, stackTrace) {
AnalysisEngine.instance.logger.logError(
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | pkg/analyzer/lib/src/summary/idl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698