MCPcopy Create free account
hub / github.com/babel/babel / initFunction

Function initFunction

packages/babel-parser/src/parser/expression.ts:2464–2469  ·  view source on GitHub ↗
(node: Undone<N.Function>, isAsync: boolean)

Source from the content-addressed store, hash-verified

2462 // Initialize empty function node.
2463
2464 initFunction(node: Undone<N.Function>, isAsync: boolean): void {
2465 // @ts-expect-error todo: id is not defined on ArrowFunctionExpression
2466 node.id = null;
2467 node.generator = false;
2468 node.async = isAsync;
2469 }
2470
2471 // Parse object or class method.
2472

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected