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

Method nodeEnd

rhino/src/main/java/org/mozilla/javascript/Parser.java:4537–4539  ·  view source on GitHub ↗
(AstNode node)

Source from the content-addressed store, hash-verified

4535
4536 // Return end of node. Assumes node does NOT have a parent yet.
4537 private static int nodeEnd(AstNode node) {
4538 return node.getPosition() + node.getLength();
4539 }
4540
4541 private void saveNameTokenData(int pos, String name, int lineno, int column) {
4542 prevNameTokenStart = pos;

Callers 3

statementMethod · 0.95
autoInsertSemicolonMethod · 0.95
exprMethod · 0.95

Calls 2

getPositionMethod · 0.65
getLengthMethod · 0.65

Tested by

no test coverage detected