specNeedingVariables implementation
(content *hcl.BodyContent)
| 450 | |
| 451 | // specNeedingVariables implementation |
| 452 | func (s *BlockListSpec) variablesNeeded(content *hcl.BodyContent) []hcl.Traversal { |
| 453 | var ret []hcl.Traversal |
| 454 | |
| 455 | for _, childBlock := range content.Blocks { |
| 456 | if childBlock.Type != s.TypeName { |
| 457 | continue |
| 458 | } |
| 459 | |
| 460 | ret = append(ret, Variables(childBlock.Body, s.Nested)...) |
| 461 | } |
| 462 | |
| 463 | return ret |
| 464 | } |
| 465 | |
| 466 | func (s *BlockListSpec) decode(content *hcl.BodyContent, blockLabels []blockLabel, ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { |
| 467 | var diags hcl.Diagnostics |
nothing calls this directly
no test coverage detected