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

Function is_inside_call

internal/cbm/extract_usages.c:53–62  ·  view source on GitHub ↗

Check if a node is inside a call expression (to avoid double-counting as usage)

Source from the content-addressed store, hash-verified

51
52// Check if a node is inside a call expression (to avoid double-counting as usage)
53static bool is_inside_call(TSNode node, const CBMLangSpec *spec) {
54 TSNode cur = ts_node_parent(node);
55 while (!ts_node_is_null(cur)) {
56 if (cbm_kind_in_set(cur, spec->call_node_types)) {
57 return true;
58 }
59 cur = ts_node_parent(cur);
60 }
61 return false;
62}
63
64// Check if a node is inside an import statement
65static bool is_inside_import(TSNode node, const CBMLangSpec *spec) {

Callers 1

try_emit_usageFunction · 0.85

Calls 1

cbm_kind_in_setFunction · 0.85

Tested by

no test coverage detected