Returns true if diagnostics have error severity or worse.
(&self)
| 890 | |
| 891 | /// Returns true if diagnostics have error severity or worse. |
| 892 | pub fn has_errors(&self) -> bool { |
| 893 | self.error_count() > 0 |
| 894 | } |
| 895 | |
| 896 | /// Returns the number of diagnostics. |
| 897 | pub fn diag_count(&self, min_severity: Severity) -> usize { |