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

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

Issue 2789113005: Fix for resynthesis when a part URI is empty. (Closed)
Patch Set: Created 3 years, 8 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/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 5c70e57bbd0209aa89ff7e4d43078d112ff10684..7d793315ee2f1dfccbbb04d2c5e3347f3ccaf5eb 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -3520,10 +3520,12 @@ abstract class LibraryElementForLink<
];
int numParts = definingUnit.parts.length;
for (int i = 0; i < numParts; i++) {
- // TODO(paulberry): make sure we handle the case where
- // resolveRelativeUri fails.
String partRelativeUriStr = definingUnit.publicNamespace.parts[i];
+ if (partRelativeUriStr.isEmpty) {
+ continue;
+ }
+
Uri partRelativeUri;
try {
partRelativeUri = Uri.parse(partRelativeUriStr);
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698