Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
refactor(extract): rename ts_node_stack.h to extract_node_stack.h
Martin Vogel1468c636ee2b
diff --git a/internal/cbm/extract_calls.c b/internal/cbm/extract_calls.cindex ef6bb9baa..8f69b68ea 100644--- a/internal/cbm/extract_calls.c+++ b/internal/cbm/extract_calls.c@@ -4,7 +4,7 @@#include "lang_specs.h"#include "extract_unified.h"#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"#include "tree_sitter/api.h" // TSNode, ts_node_*#include <stdint.h> // uint32_t#include <string.h>diff --git a/internal/cbm/extract_channels.c b/internal/cbm/extract_channels.cindex 5db1396da..2c20838b8 100644--- a/internal/cbm/extract_channels.c+++ b/internal/cbm/extract_channels.c@@ -24,7 +24,7 @@#include "arena.h"#include "helpers.h"#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"#include "tree_sitter/api.h"#include <stdint.h>#include <string.h>diff --git a/internal/cbm/extract_defs.c b/internal/cbm/extract_defs.cindex c9acd6c86..d86a58a2f 100644--- a/internal/cbm/extract_defs.c+++ b/internal/cbm/extract_defs.c@@ -3,7 +3,7 @@#include "helpers.h"#include "lang_specs.h"#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"#include "simhash/minhash.h"#include "semantic/ast_profile.h"#include "tree_sitter/api.h" // TSNode, ts_node_*diff --git a/internal/cbm/extract_env_accesses.c b/internal/cbm/extract_env_accesses.cindex 03e7c0c10..9a12411a5 100644--- a/internal/cbm/extract_env_accesses.c+++ b/internal/cbm/extract_env_accesses.c@@ -4,7 +4,7 @@#include "lang_specs.h"#include "extract_unified.h"#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"#include "tree_sitter/api.h" // TSNode, ts_node_*#include <stdint.h> // uint32_t#include <string.h>diff --git a/internal/cbm/extract_imports.c b/internal/cbm/extract_imports.cindex 4e44d33ac..c4e3112d8 100644--- a/internal/cbm/extract_imports.c+++ b/internal/cbm/extract_imports.c@@ -4,7 +4,7 @@#include "lang_specs.h" // CBMLangSpec, CBMEmbeddedLangSpec, cbm_lang_spec, cbm_ts_language#include "tree_sitter/api.h" // TSNode, ts_node_*#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"#include <stdint.h> // uint32_t#include <string.h>#include <ctype.h>diff --git a/internal/cbm/ts_node_stack.h b/internal/cbm/extract_node_stack.hsimilarity index 90%rename from internal/cbm/ts_node_stack.hrename to internal/cbm/extract_node_stack.hindex db6588e6d..bb7b183b4 100644--- a/internal/cbm/ts_node_stack.h+++ b/internal/cbm/extract_node_stack.h@@ -1,5 +1,5 @@/*- * ts_node_stack.h — Growable TSNode stack for AST traversal.+ * extract_node_stack.h — Growable TSNode stack for AST traversal.** Replaces fixed-size TSNode stack[] arrays that silently drop AST subtrees* when the stack overflows (GitHub issue #199).@@ -9,8 +9,8 @@* Initial capacity matches the previous fixed caps so small files allocate* no extra memory.*/-#ifndef CBM_TS_NODE_STACK_H-#define CBM_TS_NODE_STACK_H+#ifndef CBM_EXTRACT_NODE_STACK_H+#define CBM_EXTRACT_NODE_STACK_H#include "arena.h"#include "tree_sitter/api.h"@@ -50,4 +50,4 @@ static inline TSNode ts_nstack_pop(TSNodeStack *s) {return s->items[--s->count];}-#endif /* CBM_TS_NODE_STACK_H */+#endif /* CBM_EXTRACT_NODE_STACK_H */diff --git a/internal/cbm/extract_semantic.c b/internal/cbm/extract_semantic.cindex 17e1ebe47..324c500da 100644--- a/internal/cbm/extract_semantic.c+++ b/internal/cbm/extract_semantic.c@@ -5,7 +5,7 @@#include "extract_unified.h"#include "tree_sitter/api.h" // TSNode, ts_node_*#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"enum { MAX_EXCEPTION_NAME_LEN = 100, LAST_IDX = 1 };#include <stdint.h> // uint32_tdiff --git a/internal/cbm/extract_type_assigns.c b/internal/cbm/extract_type_assigns.cindex bd7328eda..c363c7645 100644--- a/internal/cbm/extract_type_assigns.c+++ b/internal/cbm/extract_type_assigns.c@@ -5,7 +5,7 @@#include "extract_unified.h"#include "tree_sitter/api.h" // TSNode, ts_node_*#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"#include <stdint.h> // uint32_t#include <string.h>#include <ctype.h>diff --git a/internal/cbm/extract_type_refs.c b/internal/cbm/extract_type_refs.cindex 3960d1e1a..8f78101f4 100644--- a/internal/cbm/extract_type_refs.c+++ b/internal/cbm/extract_type_refs.c@@ -5,7 +5,7 @@#include "extract_unified.h"#include "tree_sitter/api.h" // TSNode, ts_node_*#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"enum { MIN_TYPE_LEN = 1 };diff --git a/internal/cbm/extract_usages.c b/internal/cbm/extract_usages.cindex e52345f3c..16105dce9 100644--- a/internal/cbm/extract_usages.c+++ b/internal/cbm/extract_usages.c@@ -4,7 +4,7 @@#include "extract_unified.h"#include "tree_sitter/api.h" // TSNode, ts_node_*#include "foundation/constants.h"-#include "ts_node_stack.h"+#include "extract_node_stack.h"enum { MAX_PARENT_DEPTH = 10, LAST_IDX = 1 };#include <stdint.h> // uint32_t