Index: pkg/analyzer/lib/source/package_map_resolver.dart |
diff --git a/pkg/analyzer/lib/source/package_map_resolver.dart b/pkg/analyzer/lib/source/package_map_resolver.dart |
index badaf3a8467fdda666321625415da6c631962ed1..37de62a4c5ea15aad016e8a738fb05f1173810a8 100644 |
--- a/pkg/analyzer/lib/source/package_map_resolver.dart |
+++ b/pkg/analyzer/lib/source/package_map_resolver.dart |
@@ -83,7 +83,7 @@ class PackageMapUriResolver extends UriResolver { |
String pkgFolderPath = pkgFolder.path; |
if (sourcePath.startsWith(pkgFolderPath)) { |
String relPath = sourcePath.substring(pkgFolderPath.length); |
- return new Uri(path: '$PACKAGE_SCHEME:$pkgName$relPath'); |
+ return Uri.parse('$PACKAGE_SCHEME:$pkgName$relPath'); |
} |
} |
} |