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

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

Issue 1653163003: Use LinkedDependency.parts to find part URIs during resynthesis. (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/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 9f24549b4f963c3950f5f4eb8b901aa14f86a74f..c9622668395237913e34736c612acb17dc0b0f87 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1423,15 +1423,9 @@ class _LibraryResynthesizer {
Source referencedLibrarySource = summaryResynthesizer.sourceFactory
.resolveUri(librarySource, dependency.uri);
String referencedLibraryUri = referencedLibrarySource.uri.toString();
- // TODO(paulberry): consider changing Location format so that this is
- // not necessary (2nd string in location should just be the unit
- // number).
String partUri;
if (unit != 0) {
- UnlinkedUnit referencedLibraryDefiningUnit =
- summaryResynthesizer._getUnlinkedSummaryOrThrow(referencedLibraryUri);
- String uri =
- referencedLibraryDefiningUnit.publicNamespace.parts[unit - 1];
+ String uri = dependency.parts[unit - 1];
Source partSource = summaryResynthesizer.sourceFactory
.resolveUri(referencedLibrarySource, uri);
partUri = partSource.uri.toString();

Powered by Google App Engine
This is Rietveld 408576698