mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
parser: remove start_tmp() entirely
This commit is contained in:
parent
91896af877
commit
b3143bb559
4 changed files with 22 additions and 32 deletions
|
@ -2450,13 +2450,6 @@ fn (p mut Parser) get_tmp_counter() int {
|
|||
return p.tmp_cnt
|
||||
}
|
||||
|
||||
// returns expression's type, and entire expression's string representation)
|
||||
fn (p mut Parser) tmp_expr() (string, string) {
|
||||
p.cgen.start_tmp()
|
||||
typ := p.bool_expression()
|
||||
val := p.cgen.end_tmp()
|
||||
return typ, val
|
||||
}
|
||||
|
||||
fn (p mut Parser) if_st(is_expr bool, elif_depth int) string {
|
||||
if is_expr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue