(line int)
| 428 | } |
| 429 | |
| 430 | func (p *parser) ifStatement(line int) { |
| 431 | escapes := p.testThenBlock(noJump) |
| 432 | for p.t == tkElseif { |
| 433 | escapes = p.testThenBlock(escapes) |
| 434 | } |
| 435 | if p.testNext(tkElse) { |
| 436 | p.block() |
| 437 | } |
| 438 | p.checkMatch(tkEnd, tkIf, line) |
| 439 | p.function.PatchToHere(escapes) |
| 440 | } |
| 441 | |
| 442 | func (p *parser) block() { |
| 443 | p.function.EnterBlock(false) |
no test coverage detected