| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /// Summarizes the information produced by the checker. | 5 /// Summarizes the information produced by the checker. |
| 6 library dev_compiler.src.report; | |
| 7 | 6 |
| 8 import 'dart:math' show max; | 7 import 'dart:math' show max; |
| 9 | 8 |
| 10 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext; | 9 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext; |
| 11 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
| 12 import 'package:logging/logging.dart'; | 11 import 'package:logging/logging.dart'; |
| 13 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
| 14 import 'package:source_span/source_span.dart'; | 13 import 'package:source_span/source_span.dart'; |
| 15 | 14 |
| 16 import 'utils.dart'; | 15 import 'utils.dart'; |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 360 |
| 362 visitMessage(MessageSummary message) { | 361 visitMessage(MessageSummary message) { |
| 363 var kind = message.kind; | 362 var kind = message.kind; |
| 364 errorCount.putIfAbsent(currentPackage, () => <String, int>{}); | 363 errorCount.putIfAbsent(currentPackage, () => <String, int>{}); |
| 365 errorCount[currentPackage].putIfAbsent(kind, () => 0); | 364 errorCount[currentPackage].putIfAbsent(kind, () => 0); |
| 366 errorCount[currentPackage][kind]++; | 365 errorCount[currentPackage][kind]++; |
| 367 totals.putIfAbsent(kind, () => 0); | 366 totals.putIfAbsent(kind, () => 0); |
| 368 totals[kind]++; | 367 totals[kind]++; |
| 369 } | 368 } |
| 370 } | 369 } |
| OLD | NEW |