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

Method PartialContent

ext/transform/transform.go:48–52  ·  view source on GitHub ↗
(schema *hcl.BodySchema)

Source from the content-addressed store, hash-verified

46}
47
48func (w deepWrapper) PartialContent(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Body, hcl.Diagnostics) {
49 content, remain, diags := w.Transformed.PartialContent(schema)
50 content = w.transformContent(content)
51 return content, remain, diags
52}
53
54func (w deepWrapper) transformContent(content *hcl.BodyContent) *hcl.BodyContent {
55 if len(content.Blocks) == 0 {

Callers

nothing calls this directly

Calls 2

transformContentMethod · 0.95
PartialContentMethod · 0.65

Tested by

no test coverage detected