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

Function toEditorRange

graph-ui/src/core/positions.ts:30–37  ·  view source on GitHub ↗
(startLine: number, endLine: number)

Source from the content-addressed store, hash-verified

28 * line, the LSP-idiomatic way to say "through the end of `endLine`".
29 */
30export function toEditorRange(startLine: number, endLine: number): Range {
31 const first = toEditorLine(startLine);
32 const last = Math.max(first, toEditorLine(endLine));
33 return {
34 start: { line: first, character: 0 },
35 end: { line: last + 1, character: 0 },
36 };
37}
38
39/** 0-based editor line to 1-based graph line. */
40export function toGraphLine(editorLine: number): number {

Callers 12

refAtFunction · 0.90
twinTargetOfFunction · 0.90
refOfFunction · 0.90
refAtFunction · 0.90
walkSymbolFunction · 0.90
symbolFunction · 0.90
symbolNamedFunction · 0.90
symbolNamedFunction · 0.90
unresolvedCalleeFunction · 0.90
symbolNamedFunction · 0.90
refFunction · 0.90
tour-model.test.tsFile · 0.90

Calls 1

toEditorLineFunction · 0.85

Tested by 6

walkSymbolFunction · 0.72
symbolFunction · 0.72
symbolNamedFunction · 0.72
symbolNamedFunction · 0.72
symbolNamedFunction · 0.72
refFunction · 0.72