mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
compiler: rename Tok/Token to Token/TokenKind
This commit is contained in:
parent
89ea8a0275
commit
c620da9089
6 changed files with 209 additions and 211 deletions
|
@ -208,7 +208,7 @@ fn (s mut Scanner) goto_scanner_position(scp ScannerPos) {
|
|||
}
|
||||
|
||||
// get_scanner_pos_of_token rescans *the whole source* till it reaches {t.line_nr, t.col} .
|
||||
fn (s mut Scanner) get_scanner_pos_of_token(t &Tok) ScannerPos {
|
||||
fn (s mut Scanner) get_scanner_pos_of_token(t &Token) ScannerPos {
|
||||
// This rescanning is done just once on error, so it is fine for now.
|
||||
// Be careful for the performance implications, if you want to
|
||||
// do it more frequently. The alternative would be to store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue