MCPcopy
hub / github.com/TypeStrong/ts-node / lineCount

Function lineCount

src/repl.ts:703–713  ·  view source on GitHub ↗

* Count the number of lines.

(value: string)

Source from the content-addressed store, hash-verified

701 * Count the number of lines.
702 */
703function 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

Callers 1

appendToEvalStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…