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

Function makeConst

test/fixtures/snapshot/typescript.js:152552–152554  ·  view source on GitHub ↗
(modifiers, name, init)

Source from the content-addressed store, hash-verified

152550 return ts.factory.createImportSpecifier(/*isTypeOnly*/ false, propertyName !== undefined && propertyName !== name ? ts.factory.createIdentifier(propertyName) : undefined, ts.factory.createIdentifier(name));
152551 }
152552 function makeConst(modifiers, name, init) {
152553 return ts.factory.createVariableStatement(modifiers, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(name, /*exclamationToken*/ undefined, /*type*/ undefined, init)], 2 /* NodeFlags.Const */));
152554 }
152555 function makeExportDeclaration(exportSpecifiers, moduleSpecifier) {
152556 return ts.factory.createExportDeclaration(
152557 /*decorators*/ undefined,

Callers 4

convertNamedExportFunction · 0.85
exportConstFunction · 0.85
convertSingleImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected