(start: number)
| 633 | } |
| 634 | |
| 635 | private scanStar(start: number): Token { |
| 636 | this.advance(); |
| 637 | // `*`, `**`, `**=` or `*=` |
| 638 | let operator = '*'; |
| 639 | |
| 640 | if (this.peek === chars.$STAR) { |
| 641 | operator += '*'; |
| 642 | this.advance(); |
| 643 | |
| 644 | // @ts-expect-error |
| 645 | if (this.peek === chars.$EQ) { |
| 646 | operator += '='; |
| 647 | this.advance(); |
| 648 | } |
| 649 | } else if (this.peek === chars.$EQ) { |
| 650 | operator += '='; |
| 651 | this.advance(); |
| 652 | } |
| 653 | |
| 654 | return newOperatorToken(start, this.index, operator); |
| 655 | } |
| 656 | |
| 657 | private isStartOfRegex(): boolean { |
| 658 | if (this.tokens.length === 0) { |
no test coverage detected