mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-12 09:47:20 +08:00
extract_class_def() sets start_line and end_line from the tree-sitter node span, but left def.lines = 0 (zeroed by memset at function entry). The equivalent function push_method_def() correctly computes def.lines = end_line - start_line + 1 The same one-liner was simply missing from the class extraction path. This affects all languages — Python, TypeScript, Go, and any other language where Class nodes are extracted via extract_class_def(). Regression test: after indexing a project, at least one Class node must have c.lines > 0. Signed-off-by: Thomas Dyar <tdyar@intersystems.com>