containsSeverErrors static method

bool containsSeverErrors(
  1. List<SourceSpanException> errors
)

Implementation

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