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

Function cbm_is_module_level

internal/cbm/helpers.c:1146–1148  ·  view source on GitHub ↗

Back-compat wrapper: computes the parent via ts_node_parent (O(n)). * Prefer cbm_is_module_level_p at call sites that already know the * parent (the common case — iterating a parent's children). */

Source from the content-addressed store, hash-verified

1144 * Prefer cbm_is_module_level_p at call sites that already know the
1145 * parent (the common case — iterating a parent's children). */
1146bool cbm_is_module_level(TSNode node, CBMLanguage lang) {
1147 return cbm_is_module_level_p(ts_node_parent(node), lang);
1148}
1149
1150// --- FQN computation ---
1151// Mirrors Go's fqn.Compute(): project + path_parts_dotted + name

Callers

nothing calls this directly

Calls 1

cbm_is_module_level_pFunction · 0.85

Tested by

no test coverage detected