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

Method newLine

Extension/src/Utility/Text/scanner.ts:335–344  ·  view source on GitHub ↗

updates the position and marks the location

(count = 1)

Source from the content-addressed store, hash-verified

333
334 /** updates the position and marks the location */
335 private newLine(count = 1) {
336 this.text = this.#text.substr(this.#offset, count);
337 this.advance(count);
338
339 this.#line++;
340 this.#column = 0;
341 this.markPosition(); // make sure the map has the new location
342
343 return this.kind = Kind.NewLine;
344 }
345
346 start() {
347 if (this.offset === undefined) {

Callers 1

scanMethod · 0.95

Calls 2

advanceMethod · 0.95
markPositionMethod · 0.95

Tested by

no test coverage detected