MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / scanHexNumber

Method scanHexNumber

Extension/src/Utility/Text/scanner.ts:768–774  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)');

Callers 1

scanMethod · 0.95

Calls 4

assertMethod · 0.95
advanceMethod · 0.95
scanUntilMethod · 0.95
isHexDigitFunction · 0.90

Tested by

no test coverage detected