MCPcopy Index your code
hub / github.com/nodejs/node / startNode

Function startNode

test/fixtures/snapshot/typescript.js:140843–140851  ·  view source on GitHub ↗

* Add a new level of NavigationBarNodes. * This pushes to the stack, so you must call `endNode` when you are done adding to this node.

(node, name)

Source from the content-addressed store, hash-verified

140841 * This pushes to the stack, so you must call `endNode` when you are done adding to this node.
140842 */
140843 function startNode(node, name) {
140844 var navNode = emptyNavigationBarNode(node, name);
140845 pushChild(parent, navNode);
140846 // Save the old parent
140847 parentsStack.push(parent);
140848 trackedEs5ClassesStack.push(trackedEs5Classes);
140849 trackedEs5Classes = undefined;
140850 parent = navNode;
140851 }
140852 /** Call after calling `startNode` and adding children to it. */
140853 function endNode() {
140854 if (parent.children) {

Callers 4

startNestedNodesFunction · 0.85
addChildrenRecursivelyFunction · 0.85

Calls 3

emptyNavigationBarNodeFunction · 0.85
pushChildFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected