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

Function updateTypePredicateNode

test/fixtures/snapshot/typescript.js:23534–23540  ·  view source on GitHub ↗
(node, assertsModifier, parameterName, type)

Source from the content-addressed store, hash-verified

23532 }
23533 // @api
23534 function updateTypePredicateNode(node, assertsModifier, parameterName, type) {
23535 return node.assertsModifier !== assertsModifier
23536 || node.parameterName !== parameterName
23537 || node.type !== type
23538 ? update(createTypePredicateNode(assertsModifier, parameterName, type), node)
23539 : node;
23540 }
23541 // @api
23542 function createTypeReferenceNode(typeName, typeArguments) {
23543 var node = createBaseNode(178 /* SyntaxKind.TypeReference */);

Callers

nothing calls this directly

Calls 2

createTypePredicateNodeFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…