Clone SourceFactory to ensure that it does not bring a ContentAnalysis reference.

TBR

R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2453773006 .
This commit is contained in:
Konstantin Shcheglov 2016-10-28 10:23:55 -07:00
parent 4923c45689
commit 5ad24d5185

View file

@ -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() {
_sdkBundle = sourceFactory.dartSdk.getLinkedBundle();
}
/**