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

Function pushClassMethod

packages/babel-parser/src/parser/statement.ts:2081–2101  ·  view source on GitHub ↗
(
    this: Parser,
    classBody: Undone<N.ClassBody>,
    method: Undone<N.ClassMethod>,
    isGenerator: boolean,
    isAsync: boolean,
    isConstructor: boolean,
    allowsDirectSuper: boolean,
  )

Source from the content-addressed store, hash-verified

2079 }
2080
2081 pushClassMethod(
2082 this: Parser,
2083 classBody: Undone<N.ClassBody>,
2084 method: Undone<N.ClassMethod>,
2085 isGenerator: boolean,
2086 isAsync: boolean,
2087 isConstructor: boolean,
2088 allowsDirectSuper: boolean,
2089 ): void {
2090 classBody.body.push(
2091 this.parseMethod(
2092 method,
2093 isGenerator,
2094 isAsync,
2095 isConstructor,
2096 allowsDirectSuper,
2097 "ClassMethod",
2098 true,
2099 ),
2100 );
2101 }
2102
2103 pushClassPrivateMethod(
2104 this: Parser,

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
parseMethodMethod · 0.45

Tested by

no test coverage detected