(line int)
| 446 | } |
| 447 | |
| 448 | func (p *parser) whileStatement(line int) { |
| 449 | p.next() |
| 450 | top, conditionExit := p.function.Label(), p.condition() |
| 451 | p.function.EnterBlock(true) |
| 452 | p.checkNext(tkDo) |
| 453 | p.block() |
| 454 | p.function.JumpTo(top) |
| 455 | p.checkMatch(tkEnd, tkWhile, line) |
| 456 | p.function.LeaveBlock() |
| 457 | p.function.PatchToHere(conditionExit) // false conditions finish the loop |
| 458 | } |
| 459 | |
| 460 | func (p *parser) repeatStatement(line int) { |
| 461 | top := p.function.Label() |
no test coverage detected