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

Function rootNavigationBarNode

test/fixtures/snapshot/typescript.js:140787–140798  ·  view source on GitHub ↗
(sourceFile)

Source from the content-addressed store, hash-verified

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 };
140790 parent = root;
140791 for (var _i = 0, _a = sourceFile.statements; _i < _a.length; _i++) {
140792 var statement = _a[_i];
140793 addChildrenRecursively(statement);
140794 }
140795 endNode();
140796 ts.Debug.assert(!parent && !parentsStack.length);
140797 return root;
140798 }
140799 function addLeafNode(node, name) {
140800 pushChild(parent, emptyNavigationBarNode(node, name));
140801 }

Callers 2

getNavigationBarItemsFunction · 0.85
getNavigationTreeFunction · 0.85

Calls 3

addChildrenRecursivelyFunction · 0.85
endNodeFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…