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

Unified Diff: pkg/analyzer/lib/src/context/source.dart

Issue 1831133005: Consolidate duplicate code for resloving URIs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Sort Created 4 years, 9 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/context/source.dart
diff --git a/pkg/analyzer/lib/src/context/source.dart b/pkg/analyzer/lib/src/context/source.dart
index 5d18886f04494b1b00657fe8666d404ff6c9fccc..727632f6b108cc3dc613d723b7140926dd9f16de 100644
--- a/pkg/analyzer/lib/src/context/source.dart
+++ b/pkg/analyzer/lib/src/context/source.dart
@@ -286,7 +286,7 @@ class SourceFactoryImpl implements SourceFactory {
"Cannot resolve a relative URI without a containing source: "
"$containedUri");
}
- containedUri = containingSource.resolveRelativeUri(containedUri);
+ containedUri = utils.resolveRelativeUri(containingSource.uri, containedUri);
}
Uri actualUri = containedUri;

Powered by Google App Engine
This is Rietveld 408576698