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

Struct AttrSpec

hcldec/spec.go:165–169  ·  view source on GitHub ↗

An AttrSpec is a Spec that evaluates a particular attribute expression in the body and returns its resulting value converted to the requested type, or produces a diagnostic if the type is incorrect.

Source from the content-addressed store, hash-verified

163// the body and returns its resulting value converted to the requested type,
164// or produces a diagnostic if the type is incorrect.
165type AttrSpec struct {
166 Name string
167 Type cty.Type
168 Required bool
169}
170
171func (s *AttrSpec) visitSameBodyChildren(cb visitFunc) {
172 // leaf node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected