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

Function shift

graph-ui/src/browser-ai/code-facts.ts:83–83  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

81 if (start < 0) return undefined;
82 const base = indentOf(lines[start]);
83 const shift = (line: string) => line.slice(Math.min(base, indentOf(line)));
84 const header = statement(lines, start);
85 const isClass = /^class\s/.test(header.text);
86 const inner = lines.slice(header.end + 1).find(line => line.trim() && !line.trim().startsWith('#'));

Callers 1

pythonFactsFunction · 0.85

Calls 1

indentOfFunction · 0.85

Tested by

no test coverage detected