(start: number)
| 648 | } |
| 649 | |
| 650 | private scanStar(start: number): Token { |
| 651 | this.advance(); |
| 652 | // `*`, `**`, `**=` or `*=` |
| 653 | let operator = '*'; |
| 654 | |
| 655 | if (this.peek === chars.$STAR) { |
| 656 | operator += '*'; |
| 657 | this.advance(); |
| 658 | |
| 659 | // @ts-expect-error |
| 660 | if (this.peek === chars.$EQ) { |
| 661 | operator += '='; |
| 662 | this.advance(); |
| 663 | } |
| 664 | } else if (this.peek === chars.$EQ) { |
| 665 | operator += '='; |
| 666 | this.advance(); |
| 667 | } |
| 668 | |
| 669 | return newOperatorToken(start, this.index, operator); |
| 670 | } |
| 671 | |
| 672 | private isStartOfRegex(): boolean { |
| 673 | if (this.tokens.length === 0) { |
no test coverage detected