MCPcopy Create free account
hub / github.com/mozilla/rhino / peekTokenOrEOL

Method peekTokenOrEOL

rhino/src/main/java/org/mozilla/javascript/Parser.java:509–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507 // postfix ++ or -- operator, which has to be on the same line as its
508 // operand.
509 private int peekTokenOrEOL() throws IOException {
510 int tt = peekToken();
511 // Check for last peeked token flags
512 if ((currentFlaggedToken & TI_AFTER_EOL) != 0) {
513 tt = Token.EOL;
514 }
515 return tt;
516 }
517
518 private boolean mustMatchToken(int toMatch, String messageId, boolean ignoreComment)
519 throws IOException {

Callers 8

statementMethod · 0.95
throwStatementMethod · 0.95
matchJumpLabelNameMethod · 0.95
breakStatementMethod · 0.95
continueStatementMethod · 0.95
returnOrYieldMethod · 0.95
assignExprMethod · 0.95
unaryExprMethod · 0.95

Calls 1

peekTokenMethod · 0.95

Tested by

no test coverage detected