(filename string, line int, start, end int)
| 877 | } |
| 878 | |
| 879 | func 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 | } |