(name = "anonymous", indent: number = 0)
| 191 | } |
| 192 | |
| 193 | write(name = "anonymous", indent: number = 0): string { |
| 194 | return `${name}(${this.argNames.join(", ")}) { ${ |
| 195 | indent ? |
| 196 | this.body |
| 197 | .split("\n") |
| 198 | .map(l => " ".repeat(indent) + `${l}`) |
| 199 | .join("\n") |
| 200 | : this.body |
| 201 | } }` |
| 202 | } |
| 203 | |
| 204 | compile(): compiledSignature { |
| 205 | return new DynamicFunction(...this.argNames, this.body) as never |
no test coverage detected