parser: bring back old $if position calculation

pull/7076/head
Alexander Medvednikov 2020-12-01 18:59:33 +01:00
parent 0ff541375d
commit c5cd53ca79
1 changed files with 1 additions and 2 deletions

View File

@ -18,8 +18,7 @@ fn (mut p Parser) if_expr(is_comptime bool) ast.IfExpr {
pos := if is_comptime { pos := if is_comptime {
p.inside_ct_if_expr = true p.inside_ct_if_expr = true
p.next() // `$` p.next() // `$`
// p.prev_tok.position().extend(p.tok.position()) p.prev_tok.position().extend(p.tok.position())
p.tok.position()
} else { } else {
p.tok.position() p.tok.position()
} }