Commit 96de7c4d authored by pq's avatar pq

Fix analyzer error messages.

Will have the result of restoring `[static warning]` to `[warning]`, etc.

(This is essentially how we handle it in the analyzer CLI.)
parent 11a54dee
......@@ -214,7 +214,16 @@ class AnalysisErrorDescription {
ErrorCode get errorCode => error.errorCode;
String get errorType => error.errorCode.type.displayName;
String get errorType {
ErrorSeverity severity = errorCode.errorSeverity;
if (severity == ErrorSeverity.INFO) {
if (errorCode.type == ErrorType.HINT ||
errorCode.type == ErrorType.LINT) {
return errorCode.type.displayName;
}
}
return severity.displayName;
}
LineInfo_Location get location => line.getLocation(error.offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment