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

Function initFunction

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected