(name: string, suffix?: number)
| 680 | } |
| 681 | |
| 682 | getName(name: string, suffix?: number): string { |
| 683 | const formatted = this.formatName(`${name}${suffix ?? ''}`) |
| 684 | |
| 685 | if (this.toString().match(formatted)) { |
| 686 | return this.getName(name, (suffix ?? 1) + 1) |
| 687 | } |
| 688 | |
| 689 | return formatted |
| 690 | } |
| 691 | |
| 692 | appendFn(header: string): CodeFunction { |
| 693 | const fn = new CodeFunction(this, header) |
no test coverage detected