errors property

List<ParseDiagnostic> get errors

Filters out all diagnostics with the ERROR severity level

Implementation

List<ParseDiagnostic> get errors => diagnostics
    .where((it) => it.severity == DiagnosticSeverity.error)
    .toList();