1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: use token.pos instead of token.col, calculate col when needed

This commit is contained in:
joe-conigliaro
2019-11-24 03:31:28 +11:00
committed by Alexander Medvednikov
parent f42be0622e
commit 666509623e
3 changed files with 15 additions and 37 deletions

View File

@ -9,7 +9,7 @@ struct Token {
lit string // literal representation of the token
line_nr int // the line number in the source where the token occured
name_idx int // name table index for O(1) lookup
col int // the column where the token ends
pos int // the position of the token in scanner text
}