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

Method isConflictMarker

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

Source from the content-addressed store, hash-verified

694 }
695
696 private isConflictMarker() {
697 // Conflict markers must be at the start of a line.
698 if (this.#offset === 0 || isLineBreak(this.#text.charCodeAt(this.#offset - 1))) {
699 if ((this.#offset + mergeConflictMarkerLength) < this.#length) {
700 for (let i = 0; i < mergeConflictMarkerLength; i++) {
701 if (this.#text.charCodeAt(this.#offset + i) !== this.#ch) {
702 return false;
703 }
704 }
705 return this.#ch === CharacterCodes.equals || this.#text.charCodeAt(this.#offset + mergeConflictMarkerLength) === CharacterCodes.space;
706 }
707 }
708
709 return false;
710 }
711
712 private scanWhitespace(): Kind {
713 // since whitespace are not always 1 character wide, we're going to mark the position before the whitespace.

Callers 1

scanMethod · 0.95

Calls 1

isLineBreakFunction · 0.90

Tested by

no test coverage detected