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

Function updateVariableDeclaration

test/fixtures/snapshot/typescript.js:25092–25099  ·  view source on GitHub ↗
(node, name, exclamationToken, type, initializer)

Source from the content-addressed store, hash-verified

25090 }
25091 // @api
25092 function updateVariableDeclaration(node, name, exclamationToken, type, initializer) {
25093 return node.name !== name
25094 || node.type !== type
25095 || node.exclamationToken !== exclamationToken
25096 || node.initializer !== initializer
25097 ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node)
25098 : node;
25099 }
25100 // @api
25101 function createVariableDeclarationList(declarations, flags) {
25102 if (flags === void 0) { flags = 0 /* NodeFlags.None */; }

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70

Tested by

no test coverage detected