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

Function createVariableDeclaration

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

Source from the content-addressed store, hash-verified

25078 }
25079 // @api
25080 function createVariableDeclaration(name, exclamationToken, type, initializer) {
25081 var node = createBaseVariableLikeDeclaration(254 /* SyntaxKind.VariableDeclaration */,
25082 /*decorators*/ undefined,
25083 /*modifiers*/ undefined, name, type, initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer));
25084 node.exclamationToken = exclamationToken;
25085 node.transformFlags |= propagateChildFlags(node.exclamationToken);
25086 if (exclamationToken) {
25087 node.transformFlags |= 1 /* TransformFlags.ContainsTypeScript */;
25088 }
25089 return node;
25090 }
25091 // @api
25092 function updateVariableDeclaration(node, name, exclamationToken, type, initializer) {
25093 return node.name !== name

Callers 2

createCatchClauseFunction · 0.85

Calls 2

propagateChildFlagsFunction · 0.85

Tested by

no test coverage detected