(
this: Parser,
classBody: Undone<N.ClassBody>,
prop: Undone<N.ClassProperty>,
)
| 2023 | } |
| 2024 | |
| 2025 | pushClassProperty( |
| 2026 | this: Parser, |
| 2027 | classBody: Undone<N.ClassBody>, |
| 2028 | prop: Undone<N.ClassProperty>, |
| 2029 | ) { |
| 2030 | if (!prop.computed && this.nameIsConstructor(prop.key)) { |
| 2031 | // Non-computed field, which is either an identifier named "constructor" |
| 2032 | // or a string literal named "constructor" |
| 2033 | this.raise(Errors.ConstructorClassField, prop.key); |
| 2034 | } |
| 2035 | |
| 2036 | classBody.body.push(this.parseClassProperty(prop)); |
| 2037 | } |
| 2038 | |
| 2039 | pushClassPrivateProperty( |
| 2040 | this: Parser, |
nothing calls this directly
no test coverage detected