feat: add start column and end column to position struct

This commit is contained in:
Laytan Laats
2023-03-26 01:54:00 +01:00
parent 92019441d0
commit 7c12f73974
19 changed files with 316 additions and 109 deletions

View File

@@ -10,7 +10,7 @@ import (
)
func TestConstructor(t *testing.T) {
pos := position.NewPosition(1, 2, 3, 4)
pos := position.NewPosition(1, 2, 3, 4, 1, 2)
actual := errors.NewError("message", pos)
@@ -23,7 +23,7 @@ func TestConstructor(t *testing.T) {
}
func TestPrint(t *testing.T) {
pos := position.NewPosition(1, 2, 3, 4)
pos := position.NewPosition(1, 2, 3, 4, 1, 2)
Error := errors.NewError("message", pos)