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

Function updateImportDeclaration

test/fixtures/snapshot/typescript.js:25341–25349  ·  view source on GitHub ↗
(node, decorators, modifiers, importClause, moduleSpecifier, assertClause)

Source from the content-addressed store, hash-verified

25339 }
25340 // @api
25341 function updateImportDeclaration(node, decorators, modifiers, importClause, moduleSpecifier, assertClause) {
25342 return node.decorators !== decorators
25343 || node.modifiers !== modifiers
25344 || node.importClause !== importClause
25345 || node.moduleSpecifier !== moduleSpecifier
25346 || node.assertClause !== assertClause
25347 ? update(createImportDeclaration(decorators, modifiers, importClause, moduleSpecifier, assertClause), node)
25348 : node;
25349 }
25350 // @api
25351 function createImportClause(isTypeOnly, name, namedBindings) {
25352 var node = createBaseNode(267 /* SyntaxKind.ImportClause */);

Callers 1

updateModifiersFunction · 0.85

Calls 2

createImportDeclarationFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected