()
| 57 | } |
| 58 | |
| 59 | func (e *DiagnosticError) HasError() bool { |
| 60 | if e.Diagnostics.HasErrors() { |
| 61 | return true |
| 62 | } |
| 63 | |
| 64 | for _, diags := range e.KeyedDiagnostics { |
| 65 | if diags.HasErrors() { |
| 66 | return true |
| 67 | } |
| 68 | } |
| 69 | return false |
| 70 | } |
| 71 | |
| 72 | func (e *DiagnosticError) Append(key string, diag *hcl.Diagnostic) { |
| 73 | e.Extend(key, hcl.Diagnostics{diag}) |
no outgoing calls
no test coverage detected