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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2473473002: Use FileContentOverlay instead of ContentCache in the new driver. (Closed)
Patch Set: Created 4 years, 1 month 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/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index 90e714f7324651883b885538dc9c378f253b3246..f48b97858a127dca9d12561b85ac53dabe888286 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -80,7 +80,7 @@ class AnalysisDriver {
* This [ContentCache] is consulted for a file content before reading
* the content from the file.
*/
- final ContentCache _contentCache;
+ final FileContentOverlay _contentOverlay;
/**
* The [SourceFactory] is used to resolve URIs to paths and restore URIs
@@ -158,10 +158,10 @@ class AnalysisDriver {
* reference to a [AnalysisContext] in which it could have been used.
*/
AnalysisDriver(this._logger, this._resourceProvider, this._byteStore,
- this._contentCache, SourceFactory sourceFactory, this._analysisOptions)
+ this._contentOverlay, SourceFactory sourceFactory, this._analysisOptions)
: _sourceFactory = sourceFactory.clone() {
_sdkBundle = sourceFactory.dartSdk.getLinkedBundle();
- _fsState = new FileSystemState(_logger, _byteStore, _contentCache,
+ _fsState = new FileSystemState(_logger, _byteStore, _contentOverlay,
_resourceProvider, _sourceFactory, _analysisOptions);
}

Powered by Google App Engine
This is Rietveld 408576698