HasErrors returns true if the receiver contains any diagnostics of severity DiagError.
()
| 142 | // HasErrors returns true if the receiver contains any diagnostics of |
| 143 | // severity DiagError. |
| 144 | func (d Diagnostics) HasErrors() bool { |
| 145 | for _, diag := range d { |
| 146 | if diag.Severity == DiagError { |
| 147 | return true |
| 148 | } |
| 149 | } |
| 150 | return false |
| 151 | } |
| 152 | |
| 153 | func (d Diagnostics) Errs() []error { |
| 154 | var errs []error |
no outgoing calls