(content *hcl.BodyContent, blockLabels []blockLabel, ctx *hcl.EvalContext)
| 86 | } |
| 87 | |
| 88 | func (s ObjectSpec) decode(content *hcl.BodyContent, blockLabels []blockLabel, ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { |
| 89 | vals := make(map[string]cty.Value, len(s)) |
| 90 | var diags hcl.Diagnostics |
| 91 | |
| 92 | for k, spec := range s { |
| 93 | var kd hcl.Diagnostics |
| 94 | vals[k], kd = spec.decode(content, blockLabels, ctx) |
| 95 | diags = append(diags, kd...) |
| 96 | } |
| 97 | |
| 98 | return cty.ObjectVal(vals), diags |
| 99 | } |
| 100 | |
| 101 | func (s ObjectSpec) impliedType() cty.Type { |
| 102 | if len(s) == 0 { |