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

Function lineAt

src/resolution/frameworks/nestjs.ts:510–512  ·  view source on GitHub ↗
(safe: string, index: number)

Source from the content-addressed store, hash-verified

508}
509
510function lineAt(safe: string, index: number): number {
511 return safe.slice(0, index).split('\n').length;
512}
513
514function detectLanguage(filePath: string): JsLang {
515 if (filePath.endsWith('.ts') || filePath.endsWith('.tsx')) return 'typescript';

Callers 2

addRouteFunction · 0.70
closureCollectionEdgesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected