* Replaces original constructor function and manual prototype assignments * with ClassDeclaration.
()
| 90 | * with ClassDeclaration. |
| 91 | */ |
| 92 | transform() { |
| 93 | multiReplaceStatement({ |
| 94 | parent: this.parent, |
| 95 | node: this.fullNode, |
| 96 | replacements: [this.toClassDeclaration()], |
| 97 | }); |
| 98 | this.replacements.forEach(multiReplaceStatement); |
| 99 | |
| 100 | this.methods.forEach(method => method.remove()); |
| 101 | } |
| 102 | |
| 103 | toClassDeclaration() { |
| 104 | return { |
no test coverage detected