()
| 2777 | // 12.6 Iteration Statements |
| 2778 | |
| 2779 | function parseDoWhileStatement() { |
| 2780 | var body, test, oldInIteration; |
| 2781 | |
| 2782 | expectKeyword('do'); |
| 2783 | |
| 2784 | oldInIteration = state.inIteration; |
| 2785 | state.inIteration = true; |
| 2786 | |
| 2787 | body = parseStatement(); |
| 2788 | |
| 2789 | state.inIteration = oldInIteration; |
| 2790 | |
| 2791 | expectKeyword('while'); |
| 2792 | |
| 2793 | expect('('); |
| 2794 | |
| 2795 | test = parseExpression(); |
| 2796 | |
| 2797 | expect(')'); |
| 2798 | |
| 2799 | if (match(';')) { |
| 2800 | lex(); |
| 2801 | } |
| 2802 | |
| 2803 | return delegate.createDoWhileStatement(body, test); |
| 2804 | } |
| 2805 | |
| 2806 | function parseWhileStatement() { |
| 2807 | var test, body, oldInIteration; |
no test coverage detected