(schema *hcl.BodySchema)
| 50 | } |
| 51 | |
| 52 | func (b unknownBody) PartialContent(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Body, hcl.Diagnostics) { |
| 53 | content, remain, diags := b.template.PartialContent(schema) |
| 54 | content = b.fixupContent(content) |
| 55 | remain = unknownBody{template: remain, valueMarks: b.valueMarks} // remaining content must also be wrapped |
| 56 | |
| 57 | // We're intentionally preserving the diagnostics reported from the |
| 58 | // inner body so that we can still report where the template body doesn't |
| 59 | // match the requested schema. |
| 60 | return content, remain, diags |
| 61 | } |
| 62 | |
| 63 | func (b unknownBody) JustAttributes() (hcl.Attributes, hcl.Diagnostics) { |
| 64 | attrs, diags := b.template.JustAttributes() |
nothing calls this directly
no test coverage detected