MCPcopy Create free account
hub / github.com/dynjs/dynjs / catchClause

Method catchClause

src/main/java/org/dynjs/parser/js/Parser.java:1546–1560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 1

tryStatementMethod · 0.95

Calls 4

consumeMethod · 0.95
isAssignableNameMethod · 0.95
blockMethod · 0.95
getTextMethod · 0.45

Tested by

no test coverage detected