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

Method markPosition

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

adds the current position to the token to the offset:position map

()

Source from the content-addressed store, hash-verified

328
329 /** adds the current position to the token to the offset:position map */
330 private markPosition() {
331 this.#map.push({ offset: this.#offset, column: this.#column, line: this.#line });
332 }
333
334 /** updates the position and marks the location */
335 private newLine(count = 1) {

Callers 4

constructorMethod · 0.95
newLineMethod · 0.95
scanWhitespaceMethod · 0.95
scanUntilMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected