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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_test.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
« no previous file with comments | « pkg/analyzer/lib/src/summary/summary_sdk.dart ('k') | pkg/analyzer/test/src/summary/summary_sdk_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 3665b018d377ece9e37928d0a806996a8f067f4b..a5b368e579b99f889cc1aba04dc01a086c16c143 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -582,26 +582,27 @@ class C {
LibraryElementImpl resynthesizeLibraryElement(
String uri, LibraryElementImpl original) {
Map<String, UnlinkedUnit> unlinkedSummaries = <String, UnlinkedUnit>{};
- PrelinkedLibrary getPrelinkedSummaryFor(LibraryElement lib) {
+ LinkedLibrary getLinkedSummaryFor(LibraryElement lib) {
LibrarySerializationResult serialized =
serializeLibrary(lib, typeProvider);
for (int i = 0; i < serialized.unlinkedUnits.length; i++) {
unlinkedSummaries[serialized.unitUris[i]] =
new UnlinkedUnit.fromBuffer(serialized.unlinkedUnits[i].toBuffer());
}
- return new PrelinkedLibrary.fromBuffer(serialized.prelinked.toBuffer());
+ return new LinkedLibrary.fromBuffer(serialized.linked.toBuffer());
}
- Map<String, PrelinkedLibrary> prelinkedSummaries =
- <String, PrelinkedLibrary>{uri: getPrelinkedSummaryFor(original)};
+ Map<String, LinkedLibrary> linkedSummaries = <String, LinkedLibrary>{
+ uri: getLinkedSummaryFor(original)
+ };
for (Source source in otherLibrarySources) {
LibraryElement original = resolve2(source);
String uri = source.uri.toString();
- prelinkedSummaries[uri] = getPrelinkedSummaryFor(original);
+ linkedSummaries[uri] = getLinkedSummaryFor(original);
}
- PrelinkedLibrary getPrelinkedSummary(String uri) {
- PrelinkedLibrary serializedLibrary = prelinkedSummaries[uri];
+ LinkedLibrary getLinkedSummary(String uri) {
+ LinkedLibrary serializedLibrary = linkedSummaries[uri];
if (serializedLibrary == null) {
- fail('Unexpectedly tried to get prelinked summary for $uri');
+ fail('Unexpectedly tried to get linked summary for $uri');
}
return serializedLibrary;
}
@@ -615,7 +616,7 @@ class C {
SummaryResynthesizer resynthesizer = new SummaryResynthesizer(
analysisContext,
analysisContext.typeProvider,
- getPrelinkedSummary,
+ getLinkedSummary,
getUnlinkedSummary,
analysisContext.sourceFactory);
LibraryElementImpl resynthesized = resynthesizer.getLibraryElement(uri);
« no previous file with comments | « pkg/analyzer/lib/src/summary/summary_sdk.dart ('k') | pkg/analyzer/test/src/summary/summary_sdk_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698