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

Function updateImport

test/fixtures/snapshot/typescript.js:159510–159512  ·  view source on GitHub ↗
(old, defaultImportName, elements)

Source from the content-addressed store, hash-verified

159508 return externalModule !== exportEquals;
159509 }
159510 function updateImport(old, defaultImportName, elements) {
159511 return ts.factory.createImportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, defaultImportName, elements && elements.length ? ts.factory.createNamedImports(elements) : undefined), old.moduleSpecifier, /*assertClause*/ undefined);
159512 }
159513 })(refactor = ts.refactor || (ts.refactor = {}));
159514})(ts || (ts = {}));
159515/* @internal */

Callers 3

updateImportsWorkerFunction · 0.85
doChangeNamespaceToNamedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected