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

Method decode

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

Perform the decode operation on the given body, in the context of the given block (which might be null), using the given eval context. "block" is provided only by the nested calls performed by the spec types that work on block bodies.

(content *hcl.BodyContent, blockLabels []blockLabel, ctx *hcl.EvalContext)

Source from the content-addressed store, hash-verified

27 // "block" is provided only by the nested calls performed by the spec
28 // types that work on block bodies.
29 decode(content *hcl.BodyContent, blockLabels []blockLabel, ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics)
30
31 // Return the cty.Type that should be returned when decoding a body with
32 // this spec.

Callers 8

decodeMethod · 0.65
decodeMethod · 0.65
decodeMethod · 0.65
decodeMethod · 0.65
decodeMethod · 0.65
decodeMethod · 0.65
decodeMethod · 0.65
decodeFunction · 0.65

Implementers 15

AttrSpechcldec/spec.go
LiteralSpechcldec/spec.go
ExprSpechcldec/spec.go
BlockSpechcldec/spec.go
BlockListSpechcldec/spec.go
BlockTupleSpechcldec/spec.go
BlockSetSpechcldec/spec.go
BlockMapSpechcldec/spec.go
BlockObjectSpechcldec/spec.go
BlockAttrsSpechcldec/spec.go
BlockLabelSpechcldec/spec.go
DefaultSpechcldec/spec.go

Calls

no outgoing calls

Tested by

no test coverage detected