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

Function pushChild

test/fixtures/snapshot/typescript.js:140779–140786  ·  view source on GitHub ↗
(parent, child)

Source from the content-addressed store, hash-verified

140777 return n.node.kind;
140778 }
140779 function pushChild(parent, child) {
140780 if (parent.children) {
140781 parent.children.push(child);
140782 }
140783 else {
140784 parent.children = [child];
140785 }
140786 }
140787 function rootNavigationBarNode(sourceFile) {
140788 ts.Debug.assert(!parentsStack.length);
140789 var root = { node: sourceFile, name: undefined, additionalNodes: undefined, parent: undefined, children: undefined, indent: 0 };

Callers 2

addLeafNodeFunction · 0.85
startNodeFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected