MCPcopy Create free account
hub / github.com/nodejs/node / setEachParent

Function setEachParent

test/fixtures/snapshot/typescript.js:21202–21210  ·  view source on GitHub ↗
(children, parent)

Source from the content-addressed store, hash-verified

21200 }
21201 ts.setParent = setParent;
21202 function setEachParent(children, parent) {
21203 if (children) {
21204 for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {
21205 var child = children_1[_i];
21206 setParent(child, parent);
21207 }
21208 }
21209 return children;
21210 }
21211 ts.setEachParent = setEachParent;
21212 function setParentRecursive(rootNode, incremental) {
21213 if (!rootNode)

Callers

nothing calls this directly

Calls 1

setParentFunction · 0.85

Tested by

no test coverage detected