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

Function forEachReference

test/fixtures/snapshot/typescript.js:162533–162544  ·  view source on GitHub ↗
(node, checker, onReference)

Source from the content-addressed store, hash-verified

162531 }
162532 }
162533 function forEachReference(node, checker, onReference) {
162534 node.forEachChild(function cb(node) {
162535 if (ts.isIdentifier(node) && !ts.isDeclarationName(node)) {
162536 var sym = checker.getSymbolAtLocation(node);
162537 if (sym)
162538 onReference(sym);
162539 }
162540 else {
162541 node.forEachChild(cb);
162542 }
162543 });
162544 }
162545 var SymbolSet = /** @class */ (function () {
162546 function SymbolSet() {
162547 this.map = new ts.Map();

Callers 1

getUsageInfoFunction · 0.85

Calls 1

forEachChildMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…