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

Method initFunction

packages/babel-parser/src/plugins/estree.ts:152–155  ·  view source on GitHub ↗
(node: Undone<N.Function>, isAsync: boolean)

Source from the content-addressed store, hash-verified

150 // ==================================
151
152 initFunction(node: Undone<N.Function>, isAsync: boolean): void {
153 super.initFunction(node, isAsync);
154 (node as unknown as N.BodilessFunctionOrMethodBase).expression = false;
155 }
156
157 checkDeclaration(node: N.Pattern | N.ObjectProperty): void {
158 if (node != null && this.isObjectProperty(node)) {

Callers 3

parseFunctionFunction · 0.80
parseMethodFunction · 0.80
parseArrowExpressionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected