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

Method DefRange

hclsyntax/structure.go:390–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388}
389
390func (b *Block) DefRange() hcl.Range {
391 lastHeaderRange := b.TypeRange
392 if len(b.LabelRanges) > 0 {
393 lastHeaderRange = b.LabelRanges[len(b.LabelRanges)-1]
394 }
395 return hcl.RangeBetween(b.TypeRange, lastHeaderRange)
396}

Callers 2

ContextDefRangeMethod · 0.95
AsHCLBlockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected