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

Method letStatement

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

Source from the content-addressed store, hash-verified

2235 }
2236
2237 private AstNode letStatement() throws IOException {
2238 if (currentToken != Token.LET) codeBug();
2239 consumeToken();
2240 int lineno = lineNumber(), pos = ts.tokenBeg, column = columnNumber();
2241 AstNode pn;
2242 if (peekToken() == Token.LP) {
2243 pn = let(true, pos);
2244 } else {
2245 pn = variables(Token.LET, pos, true); // else, e.g.: let x=6, y=7;
2246 }
2247 pn.setLineColumnNumber(lineno, column);
2248 return pn;
2249 }
2250
2251 /**
2252 * Returns whether or not the bits in the mask have changed to all set.

Callers 1

statementHelperMethod · 0.95

Calls 8

codeBugMethod · 0.95
consumeTokenMethod · 0.95
lineNumberMethod · 0.95
columnNumberMethod · 0.95
peekTokenMethod · 0.95
letMethod · 0.95
variablesMethod · 0.95
setLineColumnNumberMethod · 0.80

Tested by

no test coverage detected