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

Method getNodeEnd

rhino/src/main/java/org/mozilla/javascript/Parser.java:395–397  ·  view source on GitHub ↗
(AstNode n)

Source from the content-addressed store, hash-verified

393 // Use with caution! Assumes n.getPosition() is -absolute-, which
394 // is only true before the node is added to its parent.
395 private static int getNodeEnd(AstNode n) {
396 return n.getPosition() + n.getLength();
397 }
398
399 private void recordComment(int lineno, int column, String comment) {
400 if (scannedComments == null) {

Callers 15

parseMethod · 0.95
ifStatementMethod · 0.95
whileLoopMethod · 0.95
doLoopMethod · 0.95
forLoopMethod · 0.95
tryStatementMethod · 0.95
breakStatementMethod · 0.95
continueStatementMethod · 0.95
withStatementMethod · 0.95
returnOrYieldMethod · 0.95
defaultXmlNamespaceMethod · 0.95
nameOrLabelMethod · 0.95

Calls 2

getPositionMethod · 0.65
getLengthMethod · 0.65

Tested by

no test coverage detected