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

Method getChildBefore

rhino/src/main/java/org/mozilla/javascript/Node.java:214–222  ·  view source on GitHub ↗
(Node child)

Source from the content-addressed store, hash-verified

212 }
213
214 public Node getChildBefore(Node child) {
215 if (child == first) return null;
216 Node n = first;
217 while (n.next != child) {
218 n = n.next;
219 if (n == null) throw new RuntimeException("node is not a child");
220 }
221 return n;
222 }
223
224 public Node getLastSibling() {
225 Node n = this;

Callers 3

addChildBeforeMethod · 0.95
removeChildMethod · 0.95
replaceChildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected