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

Method MissingItemRange

structure.go:76–76  ·  view source on GitHub ↗

MissingItemRange returns a range that represents where a missing item might hypothetically be inserted. This is used when producing diagnostics about missing required attributes or blocks. Not all bodies will have an obvious single insertion point, so the result here may be rather arbitrary.

()

Source from the content-addressed store, hash-verified

74 // will have an obvious single insertion point, so the result here may
75 // be rather arbitrary.
76 MissingItemRange() Range
77}
78
79// BodyContent is the result of applying a BodySchema to a Body.

Callers 15

MissingItemRangeMethod · 0.65
ContextDefRangeFunction · 0.65
decodeBodyToStructFunction · 0.65
decodeSpecRootFunction · 0.65
decodeAttrSpecFunction · 0.65
decodeBlockListSpecFunction · 0.65
decodeBlockSetSpecFunction · 0.65
decodeBlockMapSpecFunction · 0.65
decodeBlockNestedSpecFunction · 0.65
decodeBlockAttrsSpecFunction · 0.65
decodeDefaultSpecFunction · 0.65
decodeTransformSpecFunction · 0.65

Implementers 8

Bodyhclsyntax/structure.go
unknownBodyext/dynblock/unknown_body.go
expandBodyext/dynblock/expand_body.go
deepWrapperext/transform/transform.go
diagBodyext/transform/error.go
bodyjson/structure.go
mockBodyhcltest/mock.go

Calls

no outgoing calls

Tested by

no test coverage detected