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

Function lineOf

src/resolution/frameworks/angular-router.ts:261–261  ·  view source on GitHub ↗
(at: number)

Source from the content-addressed store, hash-verified

259 if (!ROUTER_IMPORT.test(content)) return { routes, mounts, redirects };
260 const safe = stripCommentsForRegex(content, 'typescript');
261 const lineOf = (at: number) => safe.slice(0, at).split('\n').length;
262 const seenPaths = new Set<string>();
263 const walked = new Set<number>();
264

Callers 1

walkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected