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

Function parseFunctionBodyAndFinish

packages/babel-parser/src/parser/expression.ts:2599–2609  ·  view source on GitHub ↗
(node: Undone<T>, type: T["type"], isMethod: boolean = false)

Source from the content-addressed store, hash-verified

2597 }
2598
2599 parseFunctionBodyAndFinish<
2600 T extends
2601 | N.Function
2602 | N.TSDeclareMethod
2603 | N.TSDeclareFunction
2604 | N.ClassPrivateMethod,
2605 >(node: Undone<T>, type: T["type"], isMethod: boolean = false): T {
2606 // @ts-expect-error (node is not bodiless if we get here)
2607 this.parseFunctionBody(node, false, isMethod);
2608 return this.finishNode(node, type);
2609 }
2610
2611 // Parse function body and check parameters.
2612 parseFunctionBody(

Callers

nothing calls this directly

Calls 2

finishNodeMethod · 0.80
parseFunctionBodyMethod · 0.45

Tested by

no test coverage detected