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 a8e97572ddf4e21ec52bd7701d80f99e49f0d843..5beef119944e4365d273c063a35ff8ee9148852e 100644 |
--- a/pkg/analyzer_cli/lib/src/build_mode.dart |
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart |
@@ -270,7 +270,8 @@ class BuildMode { |
]); |
// Set context options. |
- Driver.setAnalysisContextOptions(resourceProvider, context, options, |
+ Driver.setAnalysisContextOptions( |
+ resourceProvider, context.sourceFactory, context, options, |
(AnalysisOptionsImpl contextOptions) { |
if (options.buildSummaryOnlyDiet) { |
contextOptions.analyzeFunctionBodies = false; |