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

Function getTopNamespace

test/fixtures/snapshot/typescript.js:122369–122374  ·  view source on GitHub ↗
(namespaceDeclaration)

Source from the content-addressed store, hash-verified

122367 if (originalExportSymbol === d.symbol)
122368 return topNamespace.parent.parent;
122369 function getTopNamespace(namespaceDeclaration) {
122370 while (namespaceDeclaration.flags & 4 /* NodeFlags.NestedNamespace */) {
122371 namespaceDeclaration = namespaceDeclaration.parent;
122372 }
122373 return namespaceDeclaration;
122374 }
122375 });
122376 var ambientModuleDeclare = ambientModuleDeclareCandidates[0];
122377 if (ambientModuleDeclare) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected