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

Function getModifierOccurrences

test/fixtures/snapshot/typescript.js:135715–135717  ·  view source on GitHub ↗
(modifier, declaration)

Source from the content-addressed store, hash-verified

135713 });
135714 }
135715 function getModifierOccurrences(modifier, declaration) {
135716 return ts.mapDefined(getNodesToSearchForModifier(declaration, ts.modifierToFlag(modifier)), function (node) { return ts.findModifier(node, modifier); });
135717 }
135718 function getNodesToSearchForModifier(declaration, modifierFlag) {
135719 // Types of node whose children might have modifiers.
135720 var container = declaration.parent;

Callers 1

getHighlightSpansFunction · 0.85

Calls 1

Tested by

no test coverage detected