MCPcopy
hub / github.com/hashicorp/hcl / Extend

Method Extend

diagnostic.go:138–140  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

136// This is similar to Append but accepts multiple diagnostics to add. It has
137// all the same caveats and constraints.
138func (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.

Callers 2

parseObjectFunction · 0.95
parseArrayFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected