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