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

Function getExportsAndPropertiesOfModule

test/fixtures/snapshot/typescript.js:51412–51422  ·  view source on GitHub ↗
(moduleSymbol)

Source from the content-addressed store, hash-verified

51410 return symbolsToArray(getExportsOfModule(moduleSymbol));
51411 }
51412 function getExportsAndPropertiesOfModule(moduleSymbol) {
51413 var exports = getExportsOfModuleAsArray(moduleSymbol);
51414 var exportEquals = resolveExternalModuleSymbol(moduleSymbol);
51415 if (exportEquals !== moduleSymbol) {
51416 var type = getTypeOfSymbol(exportEquals);
51417 if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {
51418 ts.addRange(exports, getPropertiesOfType(type));
51419 }
51420 }
51421 return exports;
51422 }
51423 function forEachExportAndPropertyOfModule(moduleSymbol, cb) {
51424 var exports = getExportsOfModule(moduleSymbol);
51425 exports.forEach(function (symbol, key) {

Callers

nothing calls this directly

Calls 6

getTypeOfSymbolFunction · 0.85
getPropertiesOfTypeFunction · 0.85
addRangeMethod · 0.80

Tested by

no test coverage detected