| 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 511c6c099ddb23d18eae2b513c724a92eaeb2252..e2a0da58bc816d309a170dc59878237a1d950957 100644
|
| --- a/pkg/analyzer_cli/lib/src/build_mode.dart
|
| +++ b/pkg/analyzer_cli/lib/src/build_mode.dart
|
| @@ -157,7 +157,7 @@ class BuildMode {
|
| new DirectoryBasedDartSdk(new JavaFile(options.dartSdkPath));
|
| sdk.analysisOptions =
|
| Driver.createAnalysisOptionsForCommandLineOptions(options);
|
| - sdk.useSummary = true;
|
| + sdk.useSummary = !options.buildSummaryOnlyAst;
|
|
|
| // Read the summaries.
|
| summaryDataStore = new SummaryDataStore(options.buildSummaryInputs);
|
| @@ -183,10 +183,12 @@ class BuildMode {
|
| }
|
| });
|
|
|
| - // Configure using summaries.
|
| - context.typeProvider = sdk.context.typeProvider;
|
| - context.resultProvider =
|
| - new InputPackagesResultProvider(context, summaryDataStore);
|
| + if (!options.buildSummaryOnlyAst) {
|
| + // Configure using summaries.
|
| + context.typeProvider = sdk.context.typeProvider;
|
| + context.resultProvider =
|
| + new InputPackagesResultProvider(context, summaryDataStore);
|
| + }
|
| }
|
|
|
| /**
|
|
|