| Index: pkg/analyzer/lib/src/summary/summary_sdk.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/summary_sdk.dart b/pkg/analyzer/lib/src/summary/summary_sdk.dart
|
| index 5ac11b73173915768f03ec0cc77859b293df86df..e38d019df8bc1b7d478c902581634935bcde79cc 100644
|
| --- a/pkg/analyzer/lib/src/summary/summary_sdk.dart
|
| +++ b/pkg/analyzer/lib/src/summary/summary_sdk.dart
|
| @@ -36,15 +36,17 @@ class SummaryBasedDartSdk implements DartSdk {
|
| */
|
| InternalAnalysisContext _analysisContext;
|
|
|
| - SummaryBasedDartSdk(String summaryPath, this.strongMode) {
|
| - _dataStore = new SummaryDataStore(<String>[summaryPath]);
|
| + SummaryBasedDartSdk(String summaryPath, this.strongMode,
|
| + {this.resourceProvider}) {
|
| + _dataStore = new SummaryDataStore(<String>[summaryPath],
|
| + resourceProvider: resourceProvider);
|
| _uriResolver = new InSummaryUriResolver(resourceProvider, _dataStore);
|
| _bundle = _dataStore.bundles.single;
|
| }
|
|
|
| - SummaryBasedDartSdk.fromBundle(
|
| - this.strongMode, PackageBundle bundle, this.resourceProvider) {
|
| - _dataStore = new SummaryDataStore([]);
|
| + SummaryBasedDartSdk.fromBundle(this.strongMode, PackageBundle bundle,
|
| + {this.resourceProvider}) {
|
| + _dataStore = new SummaryDataStore([], resourceProvider: resourceProvider);
|
| _dataStore.addBundle('dart_sdk.sum', bundle);
|
| _uriResolver = new InSummaryUriResolver(resourceProvider, _dataStore);
|
| _bundle = bundle;
|
| @@ -64,7 +66,8 @@ class SummaryBasedDartSdk implements DartSdk {
|
| SourceFactory factory = new SourceFactory(
|
| [new DartUriResolver(this)], null, resourceProvider);
|
| _analysisContext.sourceFactory = factory;
|
| - SummaryDataStore dataStore = new SummaryDataStore([]);
|
| + SummaryDataStore dataStore =
|
| + new SummaryDataStore([], resourceProvider: resourceProvider);
|
| dataStore.addBundle(null, _bundle);
|
| _analysisContext.resultProvider =
|
| new InputPackagesResultProvider(_analysisContext, dataStore);
|
|
|