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

Method throwStatement

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

Source from the content-addressed store, hash-verified

1417 }
1418
1419 public ThrowStatement throwStatement() {
1420 Token position = consume(THROW);
1421
1422 switch (la(false)) {
1423 case NL:
1424 case CR:
1425 case CRNL:
1426 case LINE_SEPARATOR:
1427 case PARAGRAPH_SEPARATOR:
1428 case SEMICOLON:
1429 throw new SyntaxError("unexpected line terminator after 'throw'");
1430 }
1431
1432 ThrowStatement statement = factory.throwStatement(position, expression());
1433 semic();
1434 return statement;
1435 }
1436
1437 public WithStatement withStatement() {
1438 if (currentContext().isStrict()) {

Callers 1

statementMethod · 0.95

Calls 4

consumeMethod · 0.95
laMethod · 0.95
expressionMethod · 0.95
semicMethod · 0.95

Tested by

no test coverage detected