| Index: pkg/analyzer/lib/source/error_processor.dart
|
| diff --git a/pkg/analyzer/lib/source/error_processor.dart b/pkg/analyzer/lib/source/error_processor.dart
|
| index 1fd9577ce6db07deac13b0d7aaa5767ff7f1a8c0..81778bcf688c6fa3d6a7e0757f00f7bd52f50881 100644
|
| --- a/pkg/analyzer/lib/source/error_processor.dart
|
| +++ b/pkg/analyzer/lib/source/error_processor.dart
|
| @@ -121,6 +121,14 @@ class _StrongModeTypeErrorProcessor implements ErrorProcessor {
|
| ErrorSeverity get severity => ErrorSeverity.ERROR;
|
|
|
| /// Check if this processor applies to the given [error].
|
| - bool appliesTo(AnalysisError error) =>
|
| - error.errorCode.type == ErrorType.STATIC_TYPE_WARNING;
|
| + bool appliesTo(AnalysisError error) {
|
| + ErrorCode errorCode = error.errorCode;
|
| + if (errorCode is StaticTypeWarningCode) {
|
| + return true;
|
| + }
|
| + if (errorCode is StaticWarningCode) {
|
| + return errorCode.isStrongModeError;
|
| + }
|
| + return false;
|
| + }
|
| }
|
|
|