MCPcopy Index your code
hub / github.com/nodejs/node / classifyDisabledMergeCode

Function classifyDisabledMergeCode

test/fixtures/snapshot/typescript.js:130755–130769  ·  view source on GitHub ↗
(text, start, end)

Source from the content-addressed store, hash-verified

130753 }
130754 }
130755 function classifyDisabledMergeCode(text, start, end) {
130756 // Classify the line that the ||||||| or ======= marker is on as a comment.
130757 // Then just lex all further tokens and add them to the result.
130758 var i;
130759 for (i = start; i < end; i++) {
130760 if (ts.isLineBreak(text.charCodeAt(i))) {
130761 break;
130762 }
130763 }
130764 pushClassification(start, i - start, 1 /* ClassificationType.comment */);
130765 mergeConflictScanner.setTextPos(i);
130766 while (mergeConflictScanner.getTextPos() < end) {
130767 classifyDisabledCodeToken();
130768 }
130769 }
130770 function classifyDisabledCodeToken() {
130771 var start = mergeConflictScanner.getTextPos();
130772 var tokenKind = mergeConflictScanner.scan();

Callers 1

Calls 2

pushClassificationFunction · 0.85

Tested by

no test coverage detected