* Count the number of lines.
(value: string)
| 701 | * Count the number of lines. |
| 702 | */ |
| 703 | function lineCount(value: string) { |
| 704 | let count = 0; |
| 705 | |
| 706 | for (const char of value) { |
| 707 | if (char === '\n') { |
| 708 | count++; |
| 709 | } |
| 710 | } |
| 711 | |
| 712 | return count; |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * TS diagnostic codes which are recoverable, meaning that the user likely entered an incomplete line of code |
no outgoing calls
no test coverage detected
searching dependent graphs…