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

Unified Diff: pkg/analyzer/lib/file_system/file_system.dart

Issue 2060263006: Deprecate FileUriResolver and RelativeFileUriResolver in source_io.dart, replace the usages with Re… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/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 0acbc142c29af4be068c4d4dca739d9dbf7a7354..88d9e6aec31add26c1299d77b9c48954b7483fc2 100644
--- a/pkg/analyzer/lib/file_system/file_system.dart
+++ b/pkg/analyzer/lib/file_system/file_system.dart
@@ -219,7 +219,7 @@ class ResourceUriResolver extends UriResolver {
/**
* The name of the `file` scheme.
*/
- static String _FILE_SCHEME = "file";
+ static String FILE_SCHEME = "file";
Brian Wilkerson 2016/06/16 17:39:30 This should be marked 'final' now that it's public
jwren 2016/06/16 18:09:56 Done.
final ResourceProvider _provider;
@@ -227,7 +227,7 @@ class ResourceUriResolver extends UriResolver {
@override
Source resolveAbsolute(Uri uri, [Uri actualUri]) {
- if (!_isFileUri(uri)) {
+ if (!isFileUri(uri)) {
return null;
}
Resource resource =
@@ -245,5 +245,5 @@ class ResourceUriResolver extends UriResolver {
/**
* Return `true` if the given [uri] is a `file` URI.
*/
- static bool _isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME;
+ static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME;
}

Powered by Google App Engine
This is Rietveld 408576698