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

Method mustMatchToken

rhino/src/main/java/org/mozilla/javascript/Parser.java:518–522  ·  view source on GitHub ↗
(int toMatch, String messageId, boolean ignoreComment)

Source from the content-addressed store, hash-verified

516 }
517
518 private boolean mustMatchToken(int toMatch, String messageId, boolean ignoreComment)
519 throws IOException {
520 return mustMatchToken(
521 toMatch, messageId, ts.tokenBeg, ts.tokenEnd - ts.tokenBeg, ignoreComment);
522 }
523
524 private boolean mustMatchToken(
525 int toMatch, String msgId, int pos, int len, boolean ignoreComment) throws IOException {

Callers 15

parseFunctionBodyMethod · 0.95
parseFunctionParamsMethod · 0.95
functionMethod · 0.95
conditionMethod · 0.95
switchStatementMethod · 0.95
doLoopMethod · 0.95
forLoopMethod · 0.95
tryStatementMethod · 0.95
withStatementMethod · 0.95
blockMethod · 0.95
variablesMethod · 0.95
letMethod · 0.95

Calls 2

matchTokenMethod · 0.95
reportErrorMethod · 0.95

Tested by

no test coverage detected