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

Method Content

ext/dynblock/unknown_body.go:42–50  ·  view source on GitHub ↗
(schema *hcl.BodySchema)

Source from the content-addressed store, hash-verified

40}
41
42func (b unknownBody) Content(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Diagnostics) {
43 content, diags := b.template.Content(schema)
44 content = b.fixupContent(content)
45
46 // We're intentionally preserving the diagnostics reported from the
47 // inner body so that we can still report where the template body doesn't
48 // match the requested schema.
49 return content, diags
50}
51
52func (b unknownBody) PartialContent(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Body, hcl.Diagnostics) {
53 content, remain, diags := b.template.PartialContent(schema)

Callers

nothing calls this directly

Calls 2

fixupContentMethod · 0.95
ContentMethod · 0.65

Tested by

no test coverage detected