| Index: pkg/analyzer_cli/lib/src/error_formatter.dart
|
| diff --git a/pkg/analyzer_cli/lib/src/error_formatter.dart b/pkg/analyzer_cli/lib/src/error_formatter.dart
|
| index d6bec887fceac077fc55337eb2072dae4290c0d7..c43fcd8ab61fa54a9216af9b132901235b58b270 100644
|
| --- a/pkg/analyzer_cli/lib/src/error_formatter.dart
|
| +++ b/pkg/analyzer_cli/lib/src/error_formatter.dart
|
| @@ -21,6 +21,9 @@ typedef ProcessedSeverity _SeverityProcessor(AnalysisError error);
|
|
|
| /// Analysis statistics counter.
|
| class AnalysisStats {
|
| + /// The total number of diagnostics sent to [formatErrors].
|
| + int unfilteredCount;
|
| +
|
| int errorCount;
|
| int hintCount;
|
| int lintCount;
|
| @@ -30,8 +33,12 @@ class AnalysisStats {
|
| init();
|
| }
|
|
|
| + /// The total number of diagnostics reported to the user.
|
| + int get filteredCount => errorCount + warnCount + hintCount + lintCount;
|
| +
|
| /// (Re)set initial values.
|
| void init() {
|
| + unfilteredCount = 0;
|
| errorCount = 0;
|
| hintCount = 0;
|
| lintCount = 0;
|
| @@ -162,6 +169,8 @@ class ErrorFormatter {
|
| }
|
|
|
| void formatErrors(List<AnalysisErrorInfo> errorInfos) {
|
| + stats.unfilteredCount += errorInfos.length;
|
| +
|
| var errors = new List<AnalysisError>();
|
| var errorToLine = new Map<AnalysisError, LineInfo>();
|
| for (AnalysisErrorInfo errorInfo in errorInfos) {
|
|
|