@@ -10,10 +10,10 @@ import 'package:meta/meta.dart';
1010import 'package:yaml/yaml.dart' ;
1111
1212/// String identifiers mapped to associated severities.
13- const Map <String , ErrorSeverity > severityMap = {
14- 'error' : ErrorSeverity .ERROR ,
15- 'info' : ErrorSeverity .INFO ,
16- 'warning' : ErrorSeverity .WARNING ,
13+ const Map <String , DiagnosticSeverity > severityMap = {
14+ 'error' : DiagnosticSeverity .ERROR ,
15+ 'info' : DiagnosticSeverity .INFO ,
16+ 'warning' : DiagnosticSeverity .WARNING ,
1717};
1818
1919/// Error processor configuration derived from analysis (or embedder) options.
@@ -53,15 +53,15 @@ class ErrorConfig {
5353 }
5454}
5555
56- /// Process errors by filtering or changing associated [ErrorSeverity ] .
56+ /// Process errors by filtering or changing associated [DiagnosticSeverity ] .
5757class ErrorProcessor {
5858 /// The code name of the associated error.
5959 final String code;
6060
6161 /// The desired severity of the processed error.
6262 ///
6363 /// If `null` , this processor will "filter" the associated error code.
64- final ErrorSeverity ? severity;
64+ final DiagnosticSeverity ? severity;
6565
6666 /// Create an error processor that assigns errors with this [code] the
6767 /// given [severity] .
0 commit comments