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

Function updateTemplateLiteralTypeSpan

test/fixtures/snapshot/typescript.js:23511–23516  ·  view source on GitHub ↗
(node, type, literal)

Source from the content-addressed store, hash-verified

23509 }
23510 // @api
23511 function updateTemplateLiteralTypeSpan(node, type, literal) {
23512 return node.type !== type
23513 || node.literal !== literal
23514 ? update(createTemplateLiteralTypeSpan(type, literal), node)
23515 : node;
23516 }
23517 //
23518 // Types
23519 //

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70

Tested by

no test coverage detected