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

Method constructor

Extension/src/Utility/Text/scanner.ts:247–255  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

245 }
246
247 constructor(text: string) {
248 this.#text = text;
249 this.#length = text.length;
250 this.advance(0);
251 this.markPosition();
252
253 // let's hide these, then we can clone this nicely.
254 Object.defineProperty(this, 'tabWidth', { enumerable: false });
255 }
256
257 private get eof() {
258 return this.#offset > this.#length;

Callers

nothing calls this directly

Calls 2

advanceMethod · 0.95
markPositionMethod · 0.95

Tested by

no test coverage detected