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

Struct BlockListSpec

hcldec/spec.go:425–430  ·  view source on GitHub ↗

A BlockListSpec is a Spec that produces a cty list 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

423// A BlockListSpec is a Spec that produces a cty list of the results of
424// decoding all of the nested blocks of a given type, using a nested spec.
425type BlockListSpec struct {
426 TypeName string
427 Nested Spec
428 MinItems int
429 MaxItems int
430}
431
432func (s *BlockListSpec) visitSameBodyChildren(cb visitFunc) {
433 // leaf node ("Nested" does not use the same body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected