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

Function pushClassMethod

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

2009 }
2010
2011 pushClassMethod(
2012 this: Parser,
2013 classBody: Undone<N.ClassBody>,
2014 method: Undone<N.ClassMethod>,
2015 isGenerator: boolean,
2016 isAsync: boolean,
2017 isConstructor: boolean,
2018 allowsDirectSuper: boolean,
2019 ): void {
2020 classBody.body.push(
2021 this.parseMethod(
2022 method,
2023 isGenerator,
2024 isAsync,
2025 isConstructor,
2026 allowsDirectSuper,
2027 "ClassMethod",
2028 true,
2029 ),
2030 );
2031 }
2032
2033 pushClassPrivateMethod(
2034 this: Parser,

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
parseMethodMethod · 0.45

Tested by

no test coverage detected