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

Function useParent

test/fixtures/snapshot/typescript.js:135634–135636  ·  view source on GitHub ↗
(node, nodeTest, getNodes)

Source from the content-addressed store, hash-verified

135632 }); });
135633 }
135634 function useParent(node, nodeTest, getNodes) {
135635 return nodeTest(node) ? highlightSpans(getNodes(node, sourceFile)) : undefined;
135636 }
135637 function highlightSpans(nodes) {
135638 return nodes && nodes.map(function (node) { return getHighlightSpanForNode(node, sourceFile); });
135639 }

Callers 2

getHighlightSpansFunction · 0.85
getFromAllDeclarationsFunction · 0.85

Calls 2

highlightSpansFunction · 0.85
getNodesFunction · 0.85

Tested by

no test coverage detected