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

Function pushClassMethod

packages/babel-parser/src/parser/statement.ts:2078–2098  ·  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

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

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
parseMethodMethod · 0.45

Tested by

no test coverage detected