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

Method sourceRange

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

Determine the source range of the value that would be returned for the spec in the given content, in the context of the given block (which might be null). If the corresponding item is missing, return a place where it might be inserted.

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

Source from the content-addressed store, hash-verified

42 // (which might be null). If the corresponding item is missing, return
43 // a place where it might be inserted.
44 sourceRange(content *hcl.BodyContent, blockLabels []blockLabel) hcl.Range
45}
46
47type visitFunc func(spec Spec)

Callers 6

sourceRangeMethod · 0.65
sourceRangeMethod · 0.65
sourceRangeMethod · 0.65
sourceRangeMethod · 0.65
sourceRangeMethod · 0.65
sourceRangeFunction · 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