Distinct diagnostic codes grouped with occurrence counts (Object.create(null) built).
True iff any diagnostic has severity === 'warning' or 'error'.
Distinct diagnostic codes grouped with occurrence counts (Object.create(null) built).