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

Unified Diff: pkg/analyzer/lib/src/summary/summary_sdk.dart

Issue 1584313005: Downplay the distinction between linked and prelinked summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
Index: pkg/analyzer/lib/src/summary/summary_sdk.dart
diff --git a/pkg/analyzer/lib/src/summary/summary_sdk.dart b/pkg/analyzer/lib/src/summary/summary_sdk.dart
index 4d9b9feb6ce4ce6b59fabe8221debbe1dcc68723..d8dc119a9296f6637fe70275940720e2f6ff42ad 100644
--- a/pkg/analyzer/lib/src/summary/summary_sdk.dart
+++ b/pkg/analyzer/lib/src/summary/summary_sdk.dart
@@ -47,7 +47,7 @@ class SummarySdkAnalysisContext extends SdkAnalysisContext {
bool aboutToComputeResult(CacheEntry entry, ResultDescriptor result) {
if (resynthesizer == null) {
resynthesizer = new SummaryResynthesizer(this, typeProvider,
- _getPrelinkedSummary, _getUnlinkedSummary, sourceFactory);
+ _getLinkedSummary, _getUnlinkedSummary, sourceFactory);
_buildCoreLibrary();
_buildAsyncLibrary();
}
@@ -80,7 +80,7 @@ class SummarySdkAnalysisContext extends SdkAnalysisContext {
return true;
} else if (result == SOURCE_KIND) {
String uri = target.uri.toString();
- if (bundle.prelinkedLibraryUris.contains(uri)) {
+ if (bundle.linkedLibraryUris.contains(uri)) {
entry.setValue(result, SourceKind.LIBRARY, TargetedResult.EMPTY_LIST);
return true;
}
@@ -106,13 +106,13 @@ class SummarySdkAnalysisContext extends SdkAnalysisContext {
typeProvider.initializeCore(library);
}
- PrelinkedLibrary _getPrelinkedSummary(String uri) {
- for (int i = 0; i < bundle.prelinkedLibraryUris.length; i++) {
- if (bundle.prelinkedLibraryUris[i] == uri) {
- return bundle.prelinkedLibraries[i];
+ LinkedLibrary _getLinkedSummary(String uri) {
+ for (int i = 0; i < bundle.linkedLibraryUris.length; i++) {
+ if (bundle.linkedLibraryUris[i] == uri) {
+ return bundle.linkedLibraries[i];
}
}
- throw new StateError('Unable to find prelinked summary for $uri');
+ throw new StateError('Unable to find linked summary for $uri');
}
UnlinkedUnit _getUnlinkedSummary(String uri) {
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_elements.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698