1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

lots of vfmt fixes

This commit is contained in:
Alexander Medvednikov
2019-07-03 13:20:43 +02:00
parent 05ef1e0681
commit d9753ee2c6
4 changed files with 53 additions and 58 deletions

View File

@ -128,7 +128,7 @@ fn (p mut Parser) fn_decl() {
is_mut := p.tok == MUT
is_amp := p.tok == AMP
if is_mut || is_amp {
p.next()
p.check_space(p.tok)
}
receiver_typ = p.get_type()
T := p.table.find_type(receiver_typ)
@ -151,6 +151,7 @@ fn (p mut Parser) fn_decl() {
receiver_typ += '*'
}
p.check(RPAR)
p.fspace()
receiver := Var {
name: receiver_name
is_arg: true