MCPcopy
hub / github.com/hashicorp/hcl / BlockSetSpec

Struct BlockSetSpec

hcldec/spec.go:711–716  ·  hcldec/spec.go::BlockSetSpec

A BlockSetSpec is a Spec that produces a cty set of the results of decoding all of the nested blocks of a given type, using a nested spec.

Source from the content-addressed store, hash-verified

709// A BlockSetSpec is a Spec that produces a cty set of the results of
710// decoding all of the nested blocks of a given type, using a nested spec.
711type BlockSetSpec struct {
712 TypeName string
713 Nested Spec
714 MinItems int
715 MaxItems int
716}
717
718func (s *BlockSetSpec) visitSameBodyChildren(cb visitFunc) {
719 // leaf node ("Nested" does not use the same body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected