mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
remove unnecessary empty lines in cgen
This commit is contained in:
parent
730ef96398
commit
0ad0a61db2
4 changed files with 5 additions and 10 deletions
|
@ -989,10 +989,6 @@ fn (p mut Parser) statements() string {
|
|||
|
||||
fn (p mut Parser) statements_no_rcbr() string {
|
||||
p.open_scope()
|
||||
|
||||
if !p.inside_if_expr {
|
||||
p.genln('')
|
||||
}
|
||||
mut i := 0
|
||||
mut last_st_typ := ''
|
||||
for p.tok != .rcbr && p.tok != .eof {
|
||||
|
@ -1000,7 +996,6 @@ fn (p mut Parser) statements_no_rcbr() string {
|
|||
last_st_typ = p.statement(true)
|
||||
// println('last st typ=$last_st_typ')
|
||||
if !p.inside_if_expr {
|
||||
p.genln('')// // end st tok= ${p.strtok()}')
|
||||
p.fgenln('')
|
||||
}
|
||||
i++
|
||||
|
@ -2518,7 +2513,7 @@ fn (p mut Parser) if_st(is_expr bool, elif_depth int) string {
|
|||
p.returns = false
|
||||
if p.tok == .key_else {
|
||||
if !p.inside_if_expr {
|
||||
p.fgenln('')
|
||||
//p.fgenln('')
|
||||
}
|
||||
p.check(.key_else)
|
||||
p.fspace()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue