Closed rben01 closed 1 month ago
This was a remarkably simple change. I was surprised to find that none of the error reporting actually relied on
line
andposition
; it was all just byte-based.
Oh, haha :smile:. I guess it might have been used at an earlier stage. Or maybe I just implemented it because I thought it would be required, and then forgot about it. Thank you very much for all your changes. This is really valuable work!
Span is now 16 bytes instead of 32 (on a 64 bit machine) due to the removal of fields
line
andposition
fromSourceCodePositition
[sic]. Related: #559This was a remarkably simple change. I was surprised to find that none of the error reporting actually relied on
line
andposition
; it was all just byte-based. Those fields were only used in tests. If later desired, we can hang onto cumulative line lengths and convert byte index into line + position as needed. (But apparently that is not currently needed.)One thing to note is that tests that were formerly based on
position
are now based onbyte
, which means they're off by 1 (positionn
became byten-1
).