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

Function addExport

test/fixtures/snapshot/typescript.js:162659–162661  ·  view source on GitHub ↗
(decl, useEs6Exports)

Source from the content-addressed store, hash-verified

162657 return getNamesToExportInCommonJS(decl).some(function (name) { return sourceFile.symbol.exports.has(ts.escapeLeadingUnderscores(name)); });
162658 }
162659 function addExport(decl, useEs6Exports) {
162660 return useEs6Exports ? [addEs6Export(decl)] : addCommonjsExport(decl);
162661 }
162662 function addEs6Export(d) {
162663 var modifiers = ts.concatenate([ts.factory.createModifier(93 /* SyntaxKind.ExportKeyword */)], d.modifiers);
162664 switch (d.kind) {

Callers 1

addExportsFunction · 0.85

Calls 2

addEs6ExportFunction · 0.85
addCommonjsExportFunction · 0.85

Tested by

no test coverage detected