parser: fix a few things in with blank ident
parent
0fcdd7db35
commit
157ef46d5a
|
@ -70,8 +70,8 @@ fn (p mut Parser) gen_fn_decl(f Fn, typ, str_args string) {
|
|||
|
||||
// blank identifer assignment `_ = 111`
|
||||
fn (p mut Parser) gen_blank_identifier_assign() {
|
||||
p.next()
|
||||
p.check(.assign)
|
||||
p.check_name()
|
||||
p.check_space(.assign)
|
||||
pos := p.cgen.add_placeholder()
|
||||
mut typ := p.bool_expression()
|
||||
tmp := p.get_tmp()
|
||||
|
|
|
@ -34,6 +34,8 @@ fn (p mut Parser) gen_fn_decl(f Fn, typ, _str_args string) {
|
|||
}
|
||||
|
||||
fn (p mut Parser) gen_blank_identifier_assign() {
|
||||
p.check_name()
|
||||
p.check_space(.assign)
|
||||
typ := p.bool_expression()
|
||||
or_else := p.tok == .key_orelse
|
||||
//tmp := p.get_tmp()
|
||||
|
|
Loading…
Reference in New Issue