| 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)) { |