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

Function blankRange

src/resolution/strip-comments.ts:72–76  ·  view source on GitHub ↗

* Replace every char in a slice with spaces, but keep newlines so line * numbers computed downstream remain valid.

(buf: string[], start: number, end: number, src: string)

Source from the content-addressed store, hash-verified

70 * numbers computed downstream remain valid.
71 */
72function blankRange(buf: string[], start: number, end: number, src: string): void {
73 for (let i = start; i < end; i++) {
74 buf[i] = src[i] === '\n' ? '\n' : ' ';
75 }
76}
77
78// ---------- Python ----------
79

Callers 7

stripPythonFunction · 0.70
stripRubyFunction · 0.70
stripCStyleFunction · 0.70
stripPhpFunction · 0.70
stripGoFunction · 0.70
stripRustFunction · 0.70
stripErlangFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected