compiler: rename Tok/Token to Token/TokenKind

This commit is contained in:
Anders Busch 2019-10-09 00:05:34 +02:00 committed by Alexander Medvednikov
parent 89ea8a0275
commit c620da9089
6 changed files with 209 additions and 211 deletions

View file

@ -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