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

Method next

Extension/src/Utility/Text/scanner.ts:320–327  ·  view source on GitHub ↗
(token: Kind, count = 1, value?: string)

Source from the content-addressed store, hash-verified

318 }
319
320 private next(token: Kind, count = 1, value?: string) {
321 const originalOffset = this.#offset;
322 const offsetAdvancedBy = this.advance(count);
323 this.text = value || this.#text.substr(originalOffset, offsetAdvancedBy);
324
325 this.#column += count;
326 return this.kind = token;
327 }
328
329 /** adds the current position to the token to the offset:position map */
330 private markPosition() {

Callers 5

scanMethod · 0.95
rescanGreaterThanMethod · 0.95
nextFunction · 0.45
awaitNextFunction · 0.45
processCommandMethod · 0.45

Calls 1

advanceMethod · 0.95

Tested by

no test coverage detected