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

Function getExportAssignmentExport

test/fixtures/snapshot/typescript.js:136654–136660  ·  view source on GitHub ↗
(ex)

Source from the content-addressed store, hash-verified

136652 }
136653 }
136654 function getExportAssignmentExport(ex) {
136655 // Get the symbol for the `export =` node; its parent is the module it's the export of.
136656 if (!ex.symbol.parent)
136657 return undefined;
136658 var exportKind = ex.isExportEquals ? 2 /* ExportKind.ExportEquals */ : 1 /* ExportKind.Default */;
136659 return { kind: 1 /* ImportExport.Export */, symbol: symbol, exportInfo: { exportingModuleSymbol: ex.symbol.parent, exportKind: exportKind } };
136660 }
136661 function getSpecialPropertyExport(node, useLhsSymbol) {
136662 var kind;
136663 switch (ts.getAssignmentDeclarationKind(node)) {

Callers 1

getExportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected