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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2775633002: Use ansi color in the dartanalyzer cli output. (Closed)
Patch Set: make tests more robust Created 3 years, 9 months 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 | pkg/analyzer_cli/lib/src/ansi.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index 26ed245f22cb5f00d50d1112de2ddc519b4c48ec..5d0e00979c546fda547e9913babd6e05e598a1c7 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -1104,8 +1104,13 @@ class AnalysisDriver implements AnalysisDriverGeneric {
// errors were written.
throw new StateError('No ErrorCode for $errorName in $file');
}
- return new AnalysisError.forValues(file.source, error.offset,
- error.length, errorCode, error.message, error.correction);
+ return new AnalysisError.forValues(
+ file.source,
+ error.offset,
+ error.length,
+ errorCode,
+ error.message,
+ error.correction.isEmpty ? null : error.correction);
}).toList();
}
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/ansi.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698