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

Unified Diff: pkg/analyzer/lib/src/util/fast_uri.dart

Issue 2523483002: Fix FastUri.resolveUri to handle cases like "/a.dart". (Closed)
Patch Set: Created 4 years, 1 month 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/util/fast_uri.dart
diff --git a/pkg/analyzer/lib/src/util/fast_uri.dart b/pkg/analyzer/lib/src/util/fast_uri.dart
index 40681bdaae7ca21ecad90589b55ef8e265b8316c..691a51df306ffcdb02e1068e28cdcb2bc1e1b861 100644
--- a/pkg/analyzer/lib/src/util/fast_uri.dart
+++ b/pkg/analyzer/lib/src/util/fast_uri.dart
@@ -183,7 +183,8 @@ class FastUri implements Uri {
}
if (refPath.startsWith('../') ||
refPath.contains('/../') ||
- refPath.contains('/./')) {
+ refPath.contains('/./') ||
+ refPath.startsWith('/')) {
Uri slowResult = _fallbackUri.resolveUri(reference);
return FastUri.parse(slowResult.toString());
}
« 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