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

Function getNavigationBarItems

test/fixtures/snapshot/typescript.js:140744–140753  ·  view source on GitHub ↗
(sourceFile, cancellationToken)

Source from the content-addressed store, hash-verified

140742 // NavigationBarItem requires an array, but will not mutate it, so just give it this for performance.
140743 var emptyChildItemArray = [];
140744 function getNavigationBarItems(sourceFile, cancellationToken) {
140745 curCancellationToken = cancellationToken;
140746 curSourceFile = sourceFile;
140747 try {
140748 return ts.map(primaryNavBarMenuItems(rootNavigationBarNode(sourceFile)), convertToPrimaryNavBarMenuItem);
140749 }
140750 finally {
140751 reset();
140752 }
140753 }
140754 NavigationBar.getNavigationBarItems = getNavigationBarItems;
140755 function getNavigationTree(sourceFile, cancellationToken) {
140756 curCancellationToken = cancellationToken;

Callers

nothing calls this directly

Calls 4

primaryNavBarMenuItemsFunction · 0.85
rootNavigationBarNodeFunction · 0.85
resetFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…