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

Method JustAttributes

ext/dynblock/unknown_body.go:63–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (b unknownBody) JustAttributes() (hcl.Attributes, hcl.Diagnostics) {
64 attrs, diags := b.template.JustAttributes()
65 attrs = b.fixupAttrs(attrs)
66
67 // We're intentionally preserving the diagnostics reported from the
68 // inner body so that we can still report where the template body doesn't
69 // match the requested schema.
70 return attrs, diags
71}
72
73func (b unknownBody) MissingItemRange() hcl.Range {
74 return b.template.MissingItemRange()

Callers

nothing calls this directly

Calls 2

fixupAttrsMethod · 0.95
JustAttributesMethod · 0.65

Tested by

no test coverage detected