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

Method removeChild

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

Source from the content-addressed store, hash-verified

289 }
290
291 public void removeChild(Node child) {
292 Node prev = getChildBefore(child);
293 if (prev == null) first = first.next;
294 else prev.next = child.next;
295 if (child == last) last = prev;
296 child.next = null;
297 }
298
299 public void replaceChild(Node child, Node newChild) {
300 if (child == newChild) return;

Callers 8

createTryCatchFinallyMethod · 0.95
visitLetMethod · 0.45
createUnaryMethod · 0.45
finishMethod · 0.45
startMethod · 0.45

Calls 1

getChildBeforeMethod · 0.95

Tested by 2

finishMethod · 0.36
startMethod · 0.36