specNeedingVariables implementation
(content *hcl.BodyContent)
| 736 | |
| 737 | // specNeedingVariables implementation |
| 738 | func (s *BlockSetSpec) variablesNeeded(content *hcl.BodyContent) []hcl.Traversal { |
| 739 | var ret []hcl.Traversal |
| 740 | |
| 741 | for _, childBlock := range content.Blocks { |
| 742 | if childBlock.Type != s.TypeName { |
| 743 | continue |
| 744 | } |
| 745 | |
| 746 | ret = append(ret, Variables(childBlock.Body, s.Nested)...) |
| 747 | } |
| 748 | |
| 749 | return ret |
| 750 | } |
| 751 | |
| 752 | func (s *BlockSetSpec) decode(content *hcl.BodyContent, blockLabels []blockLabel, ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { |
| 753 | var diags hcl.Diagnostics |
nothing calls this directly
no test coverage detected