(got hcl.Attributes)
| 90 | } |
| 91 | |
| 92 | func (b unknownBody) fixupAttrs(got hcl.Attributes) hcl.Attributes { |
| 93 | if len(got) == 0 { |
| 94 | return nil |
| 95 | } |
| 96 | ret := make(hcl.Attributes, len(got)) |
| 97 | for name, gotAttr := range got { |
| 98 | new := *gotAttr // shallow copy |
| 99 | new.Expr = hcl.StaticExpr(cty.DynamicVal.WithMarks(b.valueMarks), gotAttr.Expr.Range()) |
| 100 | ret[name] = &new |
| 101 | } |
| 102 | return ret |
| 103 | } |
no test coverage detected