Extend concatenates the given Diagnostics with the receiver and returns the whole new Diagnostics. This is similar to Append but accepts multiple diagnostics to add. It has all the same caveats and constraints.
(diags Diagnostics)
| 136 | // This is similar to Append but accepts multiple diagnostics to add. It has |
| 137 | // all the same caveats and constraints. |
| 138 | func (d Diagnostics) Extend(diags Diagnostics) Diagnostics { |
| 139 | return append(d, diags...) |
| 140 | } |
| 141 | |
| 142 | // HasErrors returns true if the receiver contains any diagnostics of |
| 143 | // severity DiagError. |
no outgoing calls
no test coverage detected