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

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

Issue 2132073003: Validate cache consistency asynchronously. Compute modification times of physical files in a separa… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 7a12c6f1cd2d18d2493e1675bde72ff97f2e040f..9fd996a9b7cc3dda98c688af6f6c037a859045f9 100644
--- a/pkg/analyzer/lib/file_system/file_system.dart
+++ b/pkg/analyzer/lib/file_system/file_system.dart
@@ -198,6 +198,11 @@ abstract class ResourceProvider {
Folder getFolder(String path);
/**
+ * Complete with a list of modification times for the given [sources].
+ */
+ Future<List<int>> getModificationTimes(List<Source> sources);
+
+ /**
* Return the [Resource] that corresponds to the given [path].
*/
Resource getResource(String path);
@@ -225,6 +230,8 @@ class ResourceUriResolver extends UriResolver {
ResourceUriResolver(this._provider);
+ ResourceProvider get provider => _provider;
+
@override
Source resolveAbsolute(Uri uri, [Uri actualUri]) {
if (!isFileUri(uri)) {
@@ -242,8 +249,6 @@ class ResourceUriResolver extends UriResolver {
Uri restoreAbsolute(Source source) =>
_provider.pathContext.toUri(source.fullName);
- ResourceProvider get provider => _provider;
-
/**
* Return `true` if the given [uri] is a `file` URI.
*/

Powered by Google App Engine
This is Rietveld 408576698