(
this: Parser,
classBody: Undone<N.ClassBody>,
method: Undone<N.ClassPrivateMethod>,
isGenerator: boolean,
isAsync: boolean,
)
| 2031 | } |
| 2032 | |
| 2033 | pushClassPrivateMethod( |
| 2034 | this: Parser, |
| 2035 | classBody: Undone<N.ClassBody>, |
| 2036 | method: Undone<N.ClassPrivateMethod>, |
| 2037 | isGenerator: boolean, |
| 2038 | isAsync: boolean, |
| 2039 | ): void { |
| 2040 | const node = this.parseMethod( |
| 2041 | method, |
| 2042 | isGenerator, |
| 2043 | isAsync, |
| 2044 | /* isConstructor */ false, |
| 2045 | false, |
| 2046 | "ClassPrivateMethod", |
| 2047 | true, |
| 2048 | ); |
| 2049 | classBody.body.push(node); |
| 2050 | |
| 2051 | const kind = |
| 2052 | node.kind === "get" |
| 2053 | ? node.static |
| 2054 | ? ClassElementType.STATIC_GETTER |
| 2055 | : ClassElementType.INSTANCE_GETTER |
| 2056 | : node.kind === "set" |
| 2057 | ? node.static |
| 2058 | ? ClassElementType.STATIC_SETTER |
| 2059 | : ClassElementType.INSTANCE_SETTER |
| 2060 | : ClassElementType.OTHER; |
| 2061 | this.declareClassPrivateMethodInScope(node, kind); |
| 2062 | } |
| 2063 | |
| 2064 | declareClassPrivateMethodInScope( |
| 2065 | node: Undone<N.ClassPrivateMethod | N.TSDeclareMethod>, |
nothing calls this directly
no test coverage detected