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

Function getExports

test/fixtures/snapshot/typescript.js:105804–105813  ·  view source on GitHub ↗

* Gets the additional exports of a name. * * @param name The name.

(name)

Source from the content-addressed store, hash-verified

105802 * @param name The name.
105803 */
105804 function getExports(name) {
105805 if (!ts.isGeneratedIdentifier(name)) {
105806 var valueDeclaration = resolver.getReferencedImportDeclaration(name)
105807 || resolver.getReferencedValueDeclaration(name);
105808 if (valueDeclaration) {
105809 return currentModuleInfo
105810 && currentModuleInfo.exportedBindings[ts.getOriginalNodeId(valueDeclaration)];
105811 }
105812 }
105813 }
105814 }
105815 ts.transformModule = transformModule;
105816 // emit helper for dynamic import

Calls 2

addRangeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected