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

Function updateJSDocPrePostfixUnaryTypeWorker

test/fixtures/snapshot/typescript.js:25612–25616  ·  view source on GitHub ↗
(kind, node, type)

Source from the content-addressed store, hash-verified

25610 // updateJSDocNonNullableType
25611 // updateJSDocNullableType
25612 function updateJSDocPrePostfixUnaryTypeWorker(kind, node, type) {
25613 return node.type !== type
25614 ? update(createJSDocPrePostfixUnaryTypeWorker(kind, type, node.postfix), node)
25615 : node;
25616 }
25617 // @api
25618 // updateJSDocOptionalType
25619 // updateJSDocVariadicType

Callers 1

createNodeFactoryFunction · 0.85

Calls 2

updateFunction · 0.70

Tested by

no test coverage detected