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

Function updateExportDeclaration

test/fixtures/snapshot/typescript.js:25514–25523  ·  view source on GitHub ↗
(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause)

Source from the content-addressed store, hash-verified

25512 }
25513 // @api
25514 function updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause) {
25515 return node.decorators !== decorators
25516 || node.modifiers !== modifiers
25517 || node.isTypeOnly !== isTypeOnly
25518 || node.exportClause !== exportClause
25519 || node.moduleSpecifier !== moduleSpecifier
25520 || node.assertClause !== assertClause
25521 ? update(createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause), node)
25522 : node;
25523 }
25524 // @api
25525 function createNamedExports(elements) {
25526 var node = createBaseNode(273 /* SyntaxKind.NamedExports */);

Callers 1

updateModifiersFunction · 0.85

Calls 2

createExportDeclarationFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected