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 5beef119944e4365d273c063a35ff8ee9148852e..8249e77d667490df047656a798642896f1ce6969 100644 |
--- a/pkg/analyzer_cli/lib/src/build_mode.dart |
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart |
@@ -225,8 +225,8 @@ class BuildMode { |
for (Source source in explicitSources) { |
AnalysisErrorInfo errorInfo = context.getErrors(source); |
for (AnalysisError error in errorInfo.errors) { |
- ProcessedSeverity processedSeverity = |
- AnalyzerImpl.processError(error, options, context); |
+ ProcessedSeverity processedSeverity = AnalyzerImpl.processError( |
+ error, options, context.analysisOptions); |
if (processedSeverity != null) { |
maxSeverity = maxSeverity.max(processedSeverity.severity); |
} |
@@ -319,7 +319,7 @@ class BuildMode { |
options, |
stats, |
(AnalysisError error) => |
- AnalyzerImpl.processError(error, options, context)); |
+ AnalyzerImpl.processError(error, options, context.analysisOptions)); |
for (Source source in explicitSources) { |
AnalysisErrorInfo errorInfo = context.getErrors(source); |
formatter.formatErrors([errorInfo]); |