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

Function addDeclaration

test/fixtures/snapshot/typescript.js:164497–164502  ·  view source on GitHub ↗
(declaration)

Source from the content-addressed store, hash-verified

164495 this.forEachChild(visit);
164496 return result;
164497 function addDeclaration(declaration) {
164498 var name = getDeclarationName(declaration);
164499 if (name) {
164500 result.add(name, declaration);
164501 }
164502 }
164503 function getDeclarations(name) {
164504 var declarations = result.get(name);
164505 if (!declarations) {

Callers 1

visitFunction · 0.85

Calls 2

getDeclarationNameFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected