MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / lineAt

Function lineAt

graph-ui/src/pseudocode/imports-source.ts:90–98  ·  view source on GitHub ↗

1-based line the character at `index` sits on.

(source: string, index: number)

Source from the content-addressed store, hash-verified

88
89/** 1-based line the character at `index` sits on. */
90function lineAt(source: string, index: number): number {
91 let line = 1;
92 for (let at = 0; at < index && at < source.length; at++) {
93 if (source[at] === '\n') {
94 line += 1;
95 }
96 }
97 return line;
98}
99
100/** Die Evidenz einer Text-Lesung: die schwaechste, die dieses Produkt ausstellt. */
101function statementCitation(filePath: string, line: number, providerId: string, generation: number): Evidence {

Callers 1

readImportStatementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected