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

Function isExportingScope

test/fixtures/snapshot/typescript.js:54532–54535  ·  view source on GitHub ↗
(enclosingDeclaration)

Source from the content-addressed store, hash-verified

54530 deferredPrivatesStack[isExternalImportAlias ? 0 : (deferredPrivatesStack.length - 1)].set(getSymbolId(symbol), symbol);
54531 }
54532 function isExportingScope(enclosingDeclaration) {
54533 return ((ts.isSourceFile(enclosingDeclaration) && (ts.isExternalOrCommonJsModule(enclosingDeclaration) || ts.isJsonSourceFile(enclosingDeclaration))) ||
54534 (ts.isAmbientModule(enclosingDeclaration) && !ts.isGlobalScopeAugmentation(enclosingDeclaration)));
54535 }
54536 // Prepends a `declare` and/or `export` modifier if the context requires it, and then adds `node` to `result` and returns `node`
54537 function addResult(node, additionalModifierFlags) {
54538 if (ts.canHaveModifiers(node)) {

Callers 1

addResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected