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

Method MissingItemRange

merged.go:131–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (mb mergedBodies) MissingItemRange() Range {
132 if len(mb) == 0 {
133 // Nothing useful to return here, so we'll return some garbage.
134 return Range{
135 Filename: "<empty>",
136 }
137 }
138
139 // arbitrarily use the first body's missing item range
140 return mb[0].MissingItemRange()
141}
142
143func (mb mergedBodies) mergedContent(schema *BodySchema, partial bool) (*BodyContent, Body, Diagnostics) {
144 // We need to produce a new schema with none of the attributes marked as

Callers

nothing calls this directly

Calls 1

MissingItemRangeMethod · 0.65

Tested by

no test coverage detected