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

Function updateCatchClause

test/fixtures/snapshot/typescript.js:26269–26274  ·  view source on GitHub ↗
(node, variableDeclaration, block)

Source from the content-addressed store, hash-verified

26267 }
26268 // @api
26269 function updateCatchClause(node, variableDeclaration, block) {
26270 return node.variableDeclaration !== variableDeclaration
26271 || node.block !== block
26272 ? update(createCatchClause(variableDeclaration, block), node)
26273 : node;
26274 }
26275 //
26276 // Property assignments
26277 //

Callers

nothing calls this directly

Calls 2

createCatchClauseFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected