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

Method makeErrorNode

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

Source from the content-addressed store, hash-verified

4528 }
4529
4530 private ErrorNode makeErrorNode() {
4531 ErrorNode pn = new ErrorNode(ts.tokenBeg, ts.tokenEnd - ts.tokenBeg);
4532 pn.setLineColumnNumber(lineNumber(), columnNumber());
4533 return pn;
4534 }
4535
4536 // Return end of node. Assumes node does NOT have a parent yet.
4537 private static int nodeEnd(AstNode node) {

Callers 13

parseFunctionParamsMethod · 0.95
arrowFunctionMethod · 0.95
arrowFunctionParamsMethod · 0.95
statementHelperMethod · 0.95
expExprMethod · 0.95
unaryExprMethod · 0.95
xmlInitializerMethod · 0.95
propertyAccessMethod · 0.95
attributeAccessMethod · 0.95
propertyNameMethod · 0.95
primaryExprMethod · 0.95
parenExprMethod · 0.95

Calls 3

lineNumberMethod · 0.95
columnNumberMethod · 0.95
setLineColumnNumberMethod · 0.80

Tested by

no test coverage detected