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

Function createArrowFunction

test/fixtures/snapshot/typescript.js:24302–24314  ·  view source on GitHub ↗
(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body)

Source from the content-addressed store, hash-verified

24300 }
24301 // @api
24302 function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) {
24303 var node = createBaseFunctionLikeDeclaration(214 /* SyntaxKind.ArrowFunction */,
24304 /*decorators*/ undefined, modifiers,
24305 /*name*/ undefined, typeParameters, parameters, type, parenthesizerRules().parenthesizeConciseBodyOfArrowFunction(body));
24306 node.equalsGreaterThanToken = equalsGreaterThanToken !== null && equalsGreaterThanToken !== void 0 ? equalsGreaterThanToken : createToken(38 /* SyntaxKind.EqualsGreaterThanToken */);
24307 node.transformFlags |=
24308 propagateChildFlags(node.equalsGreaterThanToken) |
24309 1024 /* TransformFlags.ContainsES2015 */;
24310 if (ts.modifiersToFlags(node.modifiers) & 256 /* ModifierFlags.Async */) {
24311 node.transformFlags |= 256 /* TransformFlags.ContainsES2017 */ | 8192 /* TransformFlags.ContainsLexicalThis */;
24312 }
24313 return node;
24314 }
24315 // @api
24316 function updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) {
24317 return node.modifiers !== modifiers

Callers 2

updateArrowFunctionFunction · 0.85

Calls 3

propagateChildFlagsFunction · 0.85
createTokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…