containsSeverErrors static method
Implementation
static bool containsSeverErrors(List<SourceSpanException> errors) {
return errors.where(
(error) {
return error is! SourceSpanSeverityException ||
error.severity == SourceSpanSeverity.error ||
error.severity == SourceSpanSeverity.warning;
},
).isNotEmpty;
}