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

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

Issue 2453773006: Clone SourceFactory to ensure that it does not bring a ContentAnalysis reference. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 69040333d01abc4676dcaa56bd2e359b3c2bd133..6677376eb6194c04a09169e52b31f29eb282102f 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -177,8 +177,9 @@ class AnalysisDriver {
AnalysisStatus _currentStatus = AnalysisStatus.IDLE;
AnalysisDriver(this._logger, this._resourceProvider, this._byteStore,
- this._contentCache, this._sourceFactory, this._analysisOptions) {
- _sdkBundle = _sourceFactory.dartSdk.getLinkedBundle();
+ this._contentCache, SourceFactory sourceFactory, this._analysisOptions)
+ : _sourceFactory = sourceFactory.clone() {
Brian Wilkerson 2016/10/31 13:16:57 It seems to me that this ought to be the responsib
+ _sdkBundle = sourceFactory.dartSdk.getLinkedBundle();
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698