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

Function makeRange

gohcl/decode_test.go:879–893  ·  view source on GitHub ↗
(filename string, line int, start, end int)

Source from the content-addressed store, hash-verified

877}
878
879func makeRange(filename string, line int, start, end int) hcl.Range {
880 return hcl.Range{
881 Filename: filename,
882 Start: hcl.Pos{
883 Line: line,
884 Column: start,
885 Byte: start - 1,
886 },
887 End: hcl.Pos{
888 Line: line,
889 Column: end,
890 Byte: end - 1,
891 },
892 }
893}

Callers 1

TestDecodeBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected