A BlockAttrsSpec is a Spec that interprets a single block as if it were a map of some element type. That is, each attribute within the block becomes a key in the resulting map and the attribute's value becomes the element value, after conversion to the given element type. The resulting value is a ct
| 1189 | // an AttrSpec is preferred if the desired result is a map whose keys are |
| 1190 | // chosen by the user rather than by schema. |
| 1191 | type BlockAttrsSpec struct { |
| 1192 | TypeName string |
| 1193 | ElementType cty.Type |
| 1194 | Required bool |
| 1195 | } |
| 1196 | |
| 1197 | func (s *BlockAttrsSpec) visitSameBodyChildren(cb visitFunc) { |
| 1198 | // leaf node |
nothing calls this directly
no outgoing calls
no test coverage detected