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

Struct unknownBody

ext/dynblock/unknown_body.go:21–24  ·  view source on GitHub ↗

unknownBody is a funny body that just reports everything inside it as unknown. It uses a given other body as a sort of template for what attributes and blocks are inside -- including source location information -- but subsitutes unknown values of unknown type for all attributes. This rather odd pro

Source from the content-addressed store, hash-verified

19// we instead arrange for everything _inside_ the block to be unknown instead,
20// to give the best possible approximation.
21type unknownBody struct {
22 template hcl.Body
23 valueMarks cty.ValueMarks
24}
25
26var _ hcl.Body = unknownBody{}
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected