Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Unified Diff: lib/src/report/html_reporter.dart

Issue 1523353002: Fixes for html report (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Reformat Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/server/dependency_graph.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/report/html_reporter.dart
diff --git a/lib/src/report/html_reporter.dart b/lib/src/report/html_reporter.dart
index 34971ac775a1c7a3bc26bc94b845095e92760a94..64afdbe7dc1c32066c229f15b6ae77ad27cd6c47 100644
--- a/lib/src/report/html_reporter.dart
+++ b/lib/src/report/html_reporter.dart
@@ -93,8 +93,10 @@ class HtmlReporter implements AnalysisErrorListener {
keys = result.system.keys.toList()..sort();
for (String name in keys) {
LibrarySummary summary = result.system[name];
- summaries.add(new SummaryInfo(
- 'Dart: code', name, 'dart:${name}', summary.messages));
+ if (summary.messages.isNotEmpty) {
+ summaries.add(new SummaryInfo(
+ 'Dart: code', name, 'dart:${name}', summary.messages));
+ }
}
// Loose files
« no previous file with comments | « no previous file | lib/src/server/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698