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

Function exportConst

test/fixtures/snapshot/typescript.js:152392–152395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152390 return exportConst();
152391 }
152392 function exportConst() {
152393 // `exports.x = 0;` --> `export const x = 0;`
152394 return makeConst(modifiers, ts.factory.createIdentifier(name), replaceImportUseSites(exported, useSitesToUnqualify)); // TODO: GH#18217
152395 }
152396 }
152397 function replaceImportUseSites(nodeOrNodes, useSitesToUnqualify) {
152398 if (!useSitesToUnqualify || !ts.some(ts.arrayFrom(useSitesToUnqualify.keys()), function (original) { return ts.rangeContainsRange(nodeOrNodes, original); })) {

Callers 1

Calls 2

makeConstFunction · 0.85
replaceImportUseSitesFunction · 0.85

Tested by

no test coverage detected