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

Function isExported

test/fixtures/snapshot/typescript.js:136321–136328  ·  view source on GitHub ↗
(node, stopAtAmbientModule)

Source from the content-addressed store, hash-verified

136319 addIndirectUser(top, /** addTransitiveDependencies */ !!isExported(importCall, /** stopAtAmbientModule */ true));
136320 }
136321 function isExported(node, stopAtAmbientModule) {
136322 if (stopAtAmbientModule === void 0) { stopAtAmbientModule = false; }
136323 return ts.findAncestor(node, function (node) {
136324 if (stopAtAmbientModule && isAmbientModuleDeclaration(node))
136325 return "quit";
136326 return ts.some(node.modifiers, function (mod) { return mod.kind === 93 /* SyntaxKind.ExportKeyword */; });
136327 });
136328 }
136329 function handleNamespaceImport(importDeclaration, name, isReExport, alreadyAddedDirect) {
136330 if (exportKind === 2 /* ExportKind.ExportEquals */) {
136331 // This is a direct import, not import-as-namespace.

Callers 4

handleDirectImportsFunction · 0.85
handleImportCallFunction · 0.85
addExportsFunction · 0.85
addExportToChangesFunction · 0.85

Calls 4

someMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected