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

Unified Diff: pkg/analyzer/lib/source/package_map_resolver.dart

Issue 428303004: Breaking changes in 'analyzer' package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename Source.resolveRelative to resolveRelativeUri, soften version constraints Created 6 years, 4 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 | « pkg/analyzer/lib/file_system/physical_file_system.dart ('k') | pkg/analyzer/lib/src/analyzer_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f083f9fdfc3d9091eea2b8996bebba50c914327f..1f2f101986ae820d9e4cf33d2a85771c30e56946 100644
--- a/pkg/analyzer/lib/source/package_map_resolver.dart
+++ b/pkg/analyzer/lib/source/package_map_resolver.dart
@@ -38,17 +38,6 @@ class PackageMapUriResolver extends UriResolver {
PackageMapUriResolver(this.resourceProvider, this.packageMap);
@override
- Source fromEncoding(UriKind kind, Uri uri) {
- if (kind == UriKind.PACKAGE_URI) {
- Resource resource = resourceProvider.getResource(uri.path);
- if (resource is File) {
- return resource.createSource(kind);
- }
- }
- return null;
- }
-
- @override
Source resolveAbsolute(Uri uri) {
if (!isPackageUri(uri)) {
return null;
@@ -73,7 +62,7 @@ class PackageMapUriResolver extends UriResolver {
if (packageDir.exists) {
Resource result = packageDir.getChild(relPath);
if (result is File && result.exists) {
- return result.createSource(UriKind.PACKAGE_URI);
+ return result.createSource(uri);
}
}
}
« no previous file with comments | « pkg/analyzer/lib/file_system/physical_file_system.dart ('k') | pkg/analyzer/lib/src/analyzer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698