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

Function hasExportDeclarations

test/fixtures/snapshot/typescript.js:46342–46345  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

46340 : declareSymbol(file.locals, /*parent*/ undefined, node, symbolFlags, symbolExcludes);
46341 }
46342 function hasExportDeclarations(node) {
46343 var body = ts.isSourceFile(node) ? node : ts.tryCast(node.body, ts.isModuleBlock);
46344 return !!body && body.statements.some(function (s) { return ts.isExportDeclaration(s) || ts.isExportAssignment(s); });
46345 }
46346 function setExportContextFlag(node) {
46347 // A declaration source file or ambient module declaration that contains no export declarations (but possibly regular
46348 // declarations with export modifiers) is an export context in which declarations are implicitly exported.

Callers 1

setExportContextFlagFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected