deepWrapper is a hcl.Body implementation that ensures that a given transformer is applied to another given body when content is extracted, and that it recursively applies to any child blocks that are extracted.
| 35 | // transformer is applied to another given body when content is extracted, |
| 36 | // and that it recursively applies to any child blocks that are extracted. |
| 37 | type deepWrapper struct { |
| 38 | Transformed hcl.Body |
| 39 | Transformer Transformer |
| 40 | } |
| 41 | |
| 42 | func (w deepWrapper) Content(schema *hcl.BodySchema) (*hcl.BodyContent, hcl.Diagnostics) { |
| 43 | content, diags := w.Transformed.Content(schema) |
nothing calls this directly
no outgoing calls
no test coverage detected