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

Function getFromAllDeclarations

test/fixtures/snapshot/typescript.js:135629–135633  ·  view source on GitHub ↗
(nodeTest, keywords)

Source from the content-addressed store, hash-verified

135627 : undefined;
135628 }
135629 function getFromAllDeclarations(nodeTest, keywords) {
135630 return useParent(node.parent, nodeTest, function (decl) { return ts.mapDefined(decl.symbol.declarations, function (d) {
135631 return nodeTest(d) ? ts.find(d.getChildren(sourceFile), function (c) { return ts.contains(keywords, c.kind); }) : undefined;
135632 }); });
135633 }
135634 function useParent(node, nodeTest, getNodes) {
135635 return nodeTest(node) ? highlightSpans(getNodes(node, sourceFile)) : undefined;
135636 }

Callers 1

getHighlightSpansFunction · 0.85

Calls 4

useParentFunction · 0.85
getChildrenMethod · 0.80
findMethod · 0.65
containsMethod · 0.45

Tested by

no test coverage detected