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

Method scanBinaryNumber

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

Source from the content-addressed store, hash-verified

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;

Callers 1

scanMethod · 0.95

Calls 4

assertMethod · 0.95
advanceMethod · 0.95
scanUntilMethod · 0.95
isBinaryDigitFunction · 0.90

Tested by

no test coverage detected