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

Method tryStatement

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

Source from the content-addressed store, hash-verified

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

Callers 1

statementMethod · 0.95

Calls 5

consumeMethod · 0.95
blockMethod · 0.95
laMethod · 0.95
catchClauseMethod · 0.95
finallyClauseMethod · 0.95

Tested by

no test coverage detected