()
| 1544 | } |
| 1545 | |
| 1546 | protected CatchClause catchClause() { |
| 1547 | Token position = consume(CATCH); |
| 1548 | consume(LEFT_PAREN); |
| 1549 | String ident = consume(IDENTIFIER).getText(); |
| 1550 | |
| 1551 | if (!isAssignableName(ident)) { |
| 1552 | throw new SyntaxError(position, "invalid identifier: " + ident); |
| 1553 | } |
| 1554 | |
| 1555 | consume(RIGHT_PAREN); |
| 1556 | |
| 1557 | BlockStatement block = block(); |
| 1558 | |
| 1559 | return factory.catchClause(position, ident, block); |
| 1560 | } |
| 1561 | |
| 1562 | protected BlockStatement finallyClause() { |
| 1563 | consume(FINALLY); |
no test coverage detected