specNeedingVariables implementation
(content *hcl.BodyContent)
| 898 | |
| 899 | // specNeedingVariables implementation |
| 900 | func (s *BlockMapSpec) variablesNeeded(content *hcl.BodyContent) []hcl.Traversal { |
| 901 | var ret []hcl.Traversal |
| 902 | |
| 903 | for _, childBlock := range content.Blocks { |
| 904 | if childBlock.Type != s.TypeName { |
| 905 | continue |
| 906 | } |
| 907 | |
| 908 | ret = append(ret, Variables(childBlock.Body, s.Nested)...) |
| 909 | } |
| 910 | |
| 911 | return ret |
| 912 | } |
| 913 | |
| 914 | func (s *BlockMapSpec) decode(content *hcl.BodyContent, blockLabels []blockLabel, ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { |
| 915 | var diags hcl.Diagnostics |
nothing calls this directly
no test coverage detected