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

Function getExportInfo

test/fixtures/snapshot/typescript.js:136755–136762  ·  view source on GitHub ↗
(exportSymbol, exportKind, checker)

Source from the content-addressed store, hash-verified

136753 }
136754 }
136755 function getExportInfo(exportSymbol, exportKind, checker) {
136756 var moduleSymbol = exportSymbol.parent;
136757 if (!moduleSymbol)
136758 return undefined; // This can happen if an `export` is not at the top-level (which is a compile error).
136759 var exportingModuleSymbol = checker.getMergedSymbol(moduleSymbol); // Need to get merged symbol in case there's an augmentation.
136760 // `export` may appear in a namespace. In that case, just rely on global search.
136761 return ts.isExternalModuleSymbol(exportingModuleSymbol) ? { exportingModuleSymbol: exportingModuleSymbol, exportKind: exportKind } : undefined;
136762 }
136763 FindAllReferences.getExportInfo = getExportInfo;
136764 /** If at an export specifier, go to the symbol it refers to. */
136765 function skipExportSpecifierSymbol(symbol, checker) {

Callers 1

exportInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected