()
| 1527 | } |
| 1528 | |
| 1529 | public TryStatement tryStatement() { |
| 1530 | Token position = consume(TRY); |
| 1531 | BlockStatement block = block(); |
| 1532 | CatchClause catchClause = null; |
| 1533 | BlockStatement finallyClause = null; |
| 1534 | |
| 1535 | if (la() == CATCH) { |
| 1536 | catchClause = catchClause(); |
| 1537 | } |
| 1538 | |
| 1539 | if (la() == FINALLY) { |
| 1540 | finallyClause = finallyClause(); |
| 1541 | } |
| 1542 | |
| 1543 | return factory.tryStatement(position, block, catchClause, finallyClause); |
| 1544 | } |
| 1545 | |
| 1546 | protected CatchClause catchClause() { |
| 1547 | Token position = consume(CATCH); |
no test coverage detected