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

Unified Diff: pkg/analyzer/lib/src/error_formatter.dart

Issue 902383002: Tweak to error formatter to fix LINT display name. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/error_formatter.dart
===================================================================
--- pkg/analyzer/lib/src/error_formatter.dart (revision 43581)
+++ pkg/analyzer/lib/src/error_formatter.dart (working copy)
@@ -56,7 +56,8 @@
out.write(escapePipe(error.message));
} else {
String errorType = severity.displayName;
- if (error.errorCode.type == ErrorType.HINT) {
+ if (error.errorCode.type == ErrorType.HINT ||
+ error.errorCode.type == ErrorType.LINT) {
errorType = error.errorCode.type.displayName;
}
// [warning] 'foo' is not a... (/Users/.../tmp/foo.dart, line 1, col 2)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698