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

Function getExternalModuleContainer

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

Source from the content-addressed store, hash-verified

52120 return { accessibility: 0 /* SymbolAccessibility.Accessible */ };
52121 }
52122 function getExternalModuleContainer(declaration) {
52123 var node = ts.findAncestor(declaration, hasExternalModuleSymbol);
52124 return node && getSymbolOfNode(node);
52125 }
52126 function hasExternalModuleSymbol(declaration) {
52127 return ts.isAmbientModule(declaration) || (declaration.kind === 305 /* SyntaxKind.SourceFile */ && ts.isExternalOrCommonJsModule(declaration));
52128 }

Calls 1

getSymbolOfNodeFunction · 0.85

Tested by

no test coverage detected