Index: pkg/analyzer_cli/lib/src/analyzer_impl.dart |
diff --git a/pkg/analyzer_cli/lib/src/analyzer_impl.dart b/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
index 56eaa2fbec13b396221be7e6333f8b1270788a61..71115e0c255774684c37d17dd1d5e0de71f2d6dd 100644 |
--- a/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
+++ b/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
@@ -40,6 +40,9 @@ class AnalyzerImpl { |
final AnalysisContext context; |
+ /// Accumulated analysis statistics. |
+ final AnalysisStats stats; |
+ |
final Source librarySource; |
/// All [Source]s references by the analyzed library. |
@@ -59,7 +62,8 @@ class AnalyzerImpl { |
/// specified the "--package-warnings" option. |
String _selfPackageName; |
- AnalyzerImpl(this.context, this.librarySource, this.options, this.startTime); |
+ AnalyzerImpl(this.context, this.librarySource, this.options, this.stats, |
+ this.startTime); |
/// Returns the maximal [ErrorSeverity] of the recorded errors. |
ErrorSeverity get maxErrorSeverity { |
@@ -220,7 +224,8 @@ class AnalyzerImpl { |
StringSink sink = options.machineFormat ? errorSink : outSink; |
// Print errors. |
- ErrorFormatter formatter = new ErrorFormatter(sink, options, _processError); |
+ ErrorFormatter formatter = |
+ new ErrorFormatter(sink, options, stats, _processError); |
formatter.formatErrors(errorInfos); |
} |