MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / countNewlines

Function countNewlines

src/mcp/dynamic-boundaries.ts:385–389  ·  view source on GitHub ↗
(text: string, end: number)

Source from the content-addressed store, hash-verified

383}
384
385function countNewlines(text: string, end: number): number {
386 let n = 0;
387 for (let i = 0; i < end; i++) if (text.charCodeAt(i) === 10) n++;
388 return n;
389}
390
391/** The full source line containing `index`, trimmed and capped for display. */
392function snippetAround(text: string, index: number): string {

Callers 2

scanDynamicDispatchFunction · 0.85
scanPythonGetattrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected