warnings property

List<ParseDiagnostic> get warnings

Filters out all diagnostics with the WARNING severity level

Implementation

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