()
| 766 | } |
| 767 | |
| 768 | private scanHexNumber() { |
| 769 | this.assert(isHexDigit(this.#chNextNext), 'ParseError: Hex Digit expected (0-F,0-f)'); |
| 770 | this.advance(2); |
| 771 | |
| 772 | this.text = `0x${this.scanUntil((ch) => !isHexDigit(ch), 'Hex Digit')}`; |
| 773 | return this.kind = Kind.NumericLiteral; |
| 774 | } |
| 775 | |
| 776 | private scanBinaryNumber() { |
| 777 | this.assert(isBinaryDigit(this.#chNextNext), 'ParseError: Binary Digit expected (0,1)'); |
no test coverage detected