parser: bring back old $if position calculation
parent
0ff541375d
commit
c5cd53ca79
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue