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:

committed by
Alexander Medvednikov

parent
f42be0622e
commit
666509623e
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user