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

Function toGraphLine

graph-ui/src/core/positions.ts:40–42  ·  view source on GitHub ↗
(editorLine: number)

Source from the content-addressed store, hash-verified

38
39/** 0-based editor line to 1-based graph line. */
40export function toGraphLine(editorLine: number): number {
41 return editorLine + 1;
42}
43
44/** 1-based graph line to 0-based editor line, clamped so it never goes negative. */
45export function toEditorLine(graphLine: number): number {

Callers 4

twinLocationOfFunction · 0.90
declarationRefOfFunction · 0.90
sourceOfIrFunction · 0.90
endLineOfFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected