MCPcopy Index your code
hub / github.com/nodejs/node / makeImportSpecifier

Function makeImportSpecifier

test/fixtures/snapshot/typescript.js:152549–152551  ·  view source on GitHub ↗
(propertyName, name)

Source from the content-addressed store, hash-verified

152547 : ts.makeImport(/*name*/ undefined, [makeImportSpecifier(propertyName, localName)], moduleSpecifier, quotePreference);
152548 }
152549 function makeImportSpecifier(propertyName, name) {
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 }

Callers 3

convertSingleImportFunction · 0.85
makeSingleImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected