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

Unified Diff: pkg/analyzer/lib/file_system/file_system.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/CHANGELOG.md ('k') | pkg/analyzer/lib/file_system/memory_file_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/file_system/file_system.dart
diff --git a/pkg/analyzer/lib/file_system/file_system.dart b/pkg/analyzer/lib/file_system/file_system.dart
index d97b595700884ed7ec2e973021d09c691618f689..1827feb3d0a815fd41021a5dd4c28d16354078bd 100644
--- a/pkg/analyzer/lib/file_system/file_system.dart
+++ b/pkg/analyzer/lib/file_system/file_system.dart
@@ -18,7 +18,7 @@ abstract class File extends Resource {
/**
* Create a new [Source] instance that serves this file.
*/
- Source createSource(UriKind uriKind);
+ Source createSource([Uri uri]);
}
@@ -115,24 +115,13 @@ class ResourceUriResolver extends UriResolver {
ResourceUriResolver(this._provider);
@override
- Source fromEncoding(UriKind kind, Uri uri) {
- if (kind == UriKind.FILE_URI) {
- Resource resource = _provider.getResource(uri.path);
- if (resource is File) {
- return resource.createSource(kind);
- }
- }
- return null;
- }
-
- @override
Source resolveAbsolute(Uri uri) {
if (!_isFileUri(uri)) {
return null;
}
Resource resource = _provider.getResource(uri.path);
if (resource is File) {
- return resource.createSource(UriKind.FILE_URI);
+ return resource.createSource(uri);
}
return null;
}
« no previous file with comments | « pkg/analyzer/CHANGELOG.md ('k') | pkg/analyzer/lib/file_system/memory_file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698