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

Method iterationStatement

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

Source from the content-addressed store, hash-verified

1584 }
1585
1586 public Statement iterationStatement() {
1587 try {
1588 pushContext(ContextType.ITERATION);
1589
1590 switch (la()) {
1591 case DO:
1592 return doWhileStatement();
1593 case WHILE:
1594 return whileStatement();
1595 case FOR:
1596 return forStatement();
1597 }
1598
1599 throw new SyntaxError("unexpected token: " + laToken().getText());
1600 } finally {
1601 popContext();
1602 }
1603 }
1604
1605 public DoWhileStatement doWhileStatement() {
1606 try {

Callers 1

statementMethod · 0.95

Calls 8

pushContextMethod · 0.95
laMethod · 0.95
doWhileStatementMethod · 0.95
whileStatementMethod · 0.95
forStatementMethod · 0.95
laTokenMethod · 0.95
popContextMethod · 0.95
getTextMethod · 0.45

Tested by

no test coverage detected