(schema *hcl.BodySchema)
| 40 | } |
| 41 | |
| 42 | func (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 | |
| 52 | func (b unknownBody) PartialContent(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Body, hcl.Diagnostics) { |
| 53 | content, remain, diags := b.template.PartialContent(schema) |
nothing calls this directly
no test coverage detected