(text, start, end)
| 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(); |
no test coverage detected