()
| 774 | } |
| 775 | |
| 776 | private scanBinaryNumber() { |
| 777 | this.assert(isBinaryDigit(this.#chNextNext), 'ParseError: Binary Digit expected (0,1)'); |
| 778 | |
| 779 | this.advance(2); |
| 780 | |
| 781 | this.text = `0b${this.scanUntil((ch) => !isBinaryDigit(ch), 'Binary Digit')}`; |
| 782 | return this.kind = Kind.NumericLiteral; |
| 783 | |
| 784 | } |
| 785 | |
| 786 | private get widthOfCh() { |
| 787 | return this.#ch === CharacterCodes.tab ? (this.#column % this.tabWidth || this.tabWidth) : 1; |
no test coverage detected