()
| 7455 | // 12.6 Iteration Statements |
| 7456 | |
| 7457 | function parseDoWhileStatement() { |
| 7458 | var body, test, oldInIteration, marker = markerCreate(); |
| 7459 | |
| 7460 | expectKeyword('do'); |
| 7461 | |
| 7462 | oldInIteration = state.inIteration; |
| 7463 | state.inIteration = true; |
| 7464 | |
| 7465 | body = parseStatement(); |
| 7466 | |
| 7467 | state.inIteration = oldInIteration; |
| 7468 | |
| 7469 | expectKeyword('while'); |
| 7470 | |
| 7471 | expect('('); |
| 7472 | |
| 7473 | test = parseExpression(); |
| 7474 | |
| 7475 | expect(')'); |
| 7476 | |
| 7477 | if (match(';')) { |
| 7478 | lex(); |
| 7479 | } |
| 7480 | |
| 7481 | return markerApply(marker, delegate.createDoWhileStatement(body, test)); |
| 7482 | } |
| 7483 | |
| 7484 | function parseWhileStatement() { |
| 7485 | var test, body, oldInIteration, marker = markerCreate(); |
no test coverage detected