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

Function convertToTree

test/fixtures/snapshot/typescript.js:141447–141456  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

141445 }
141446 }
141447 function convertToTree(n) {
141448 return {
141449 text: getItemName(n.node, n.name),
141450 kind: ts.getNodeKind(n.node),
141451 kindModifiers: getModifiers(n.node),
141452 spans: getSpans(n),
141453 nameSpan: n.name && getNodeSpan(n.name),
141454 childItems: ts.map(n.children, convertToTree)
141455 };
141456 }
141457 function convertToPrimaryNavBarMenuItem(n) {
141458 return {
141459 text: getItemName(n.node, n.name),

Callers 1

getNavigationTreeFunction · 0.85

Calls 5

getItemNameFunction · 0.85
getModifiersFunction · 0.85
getSpansFunction · 0.85
getNodeSpanFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…