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

Function sourceRange

hcldec/decode.go:34–39  ·  view source on GitHub ↗
(body hcl.Body, blockLabels []blockLabel, spec Spec)

Source from the content-addressed store, hash-verified

32}
33
34func sourceRange(body hcl.Body, blockLabels []blockLabel, spec Spec) hcl.Range {
35 schema := ImpliedSchema(spec)
36 content, _, _ := body.PartialContent(schema)
37
38 return spec.sourceRange(content, blockLabels)
39}

Callers 10

sourceRangeMethod · 0.85
decodeMethod · 0.85
sourceRangeMethod · 0.85
decodeMethod · 0.85
sourceRangeMethod · 0.85
decodeMethod · 0.85
sourceRangeMethod · 0.85
sourceRangeMethod · 0.85
sourceRangeMethod · 0.85
SourceRangeFunction · 0.85

Calls 3

ImpliedSchemaFunction · 0.85
PartialContentMethod · 0.65
sourceRangeMethod · 0.65

Tested by

no test coverage detected