()
| 1694 | } |
| 1695 | |
| 1696 | private WhileLoop whileLoop() throws IOException { |
| 1697 | if (currentToken != Token.WHILE) codeBug(); |
| 1698 | consumeToken(); |
| 1699 | int pos = ts.tokenBeg; |
| 1700 | WhileLoop pn = new WhileLoop(pos); |
| 1701 | pn.setLineColumnNumber(lineNumber(), columnNumber()); |
| 1702 | enterLoop(pn); |
| 1703 | try { |
| 1704 | ConditionData data = condition(); |
| 1705 | pn.setCondition(data.condition); |
| 1706 | pn.setParens(data.lp - pos, data.rp - pos); |
| 1707 | AstNode body = getNextStatementAfterInlineComments(pn); |
| 1708 | pn.setLength(getNodeEnd(body) - pos); |
| 1709 | restoreRelativeLoopPosition(pn); |
| 1710 | pn.setBody(body); |
| 1711 | } finally { |
| 1712 | exitLoop(); |
| 1713 | } |
| 1714 | return pn; |
| 1715 | } |
| 1716 | |
| 1717 | private DoLoop doLoop() throws IOException { |
| 1718 | if (currentToken != Token.DO) codeBug(); |
no test coverage detected