diffparser
diffparser copied to clipboard
When there are empty lines in the code, the value of DiffLine.Number is inaccurate
source code ` @@ -3,11 +3,7 @@ const Name = "test"
func Add(x int, y int) int { if x > 3 { return x - y } else { return x + y } return x + y } `
You can see from the results: const Name = "veitch" ---> DiffLine.Number is 3 "func Add(x int, y int) int {" ---> DiffLine.Number is 4,
but the position of "func Add(x int, y int) int {" in the source code is 5