| Index: pkg/analyzer_cli/lib/src/build_mode.dart
|
| diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart
|
| index 1db869018fa35e0147be717a66afe3a28659776a..a2c921881175b9269f0c1886bb6a985b612e4703 100644
|
| --- a/pkg/analyzer_cli/lib/src/build_mode.dart
|
| +++ b/pkg/analyzer_cli/lib/src/build_mode.dart
|
| @@ -127,6 +127,9 @@ class BuildMode {
|
| void _createContext() {
|
| DirectoryBasedDartSdk sdk =
|
| new DirectoryBasedDartSdk(new JavaFile(options.dartSdkPath));
|
| + sdk.analysisOptions =
|
| + Driver.createAnalysisOptionsForCommandLineOptions(options);
|
| + sdk.useSummary = true;
|
|
|
| // Read the summaries.
|
| SummaryDataStore summaryDataStore =
|
| @@ -145,7 +148,6 @@ class BuildMode {
|
| context, options, (AnalysisOptionsImpl contextOptions) {});
|
|
|
| // Configure using summaries.
|
| - sdk.useSummary = true;
|
| context.typeProvider = sdk.context.typeProvider;
|
| context.resultProvider =
|
| new InputPackagesResultProvider(context, summaryDataStore);
|
|
|