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

Function updateJSDocTypeLiteral

test/fixtures/snapshot/typescript.js:25651–25656  ·  view source on GitHub ↗
(node, propertyTags, isArrayType)

Source from the content-addressed store, hash-verified

25649 }
25650 // @api
25651 function updateJSDocTypeLiteral(node, propertyTags, isArrayType) {
25652 return node.jsDocPropertyTags !== propertyTags
25653 || node.isArrayType !== isArrayType
25654 ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node)
25655 : node;
25656 }
25657 // @api
25658 function createJSDocTypeExpression(type) {
25659 var node = createBaseNode(309 /* SyntaxKind.JSDocTypeExpression */);

Callers

nothing calls this directly

Calls 2

createJSDocTypeLiteralFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected