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

Method visitSameBodyChildren

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

Call the given callback once for each of the nested specs that would get decoded with the same body and block as the receiver. This should not descend into the nested specs used when decoding blocks.

(cb visitFunc)

Source from the content-addressed store, hash-verified

36 // get decoded with the same body and block as the receiver. This should
37 // not descend into the nested specs used when decoding blocks.
38 visitSameBodyChildren(cb visitFunc)
39
40 // Determine the source range of the value that would be returned for the
41 // spec in the given content, in the context of the given block

Callers 4

findLabelSpecsFunction · 0.65
ImpliedSchemaFunction · 0.65
ChildBlockTypesFunction · 0.65
VariablesFunction · 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