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

Function declared_function_name_owner

internal/cbm/extract_usages.c:1800–1808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1798}
1799
1800static TSNode declared_function_name_owner(TSNode node, const CBMLangSpec *spec) {
1801 for (TSNode parent = ts_node_parent(node); !ts_node_is_null(parent);
1802 parent = ts_node_parent(parent)) {
1803 if (spec->function_node_types && cbm_kind_in_set(parent, spec->function_node_types)) {
1804 return field_contains_node(parent, "name", node) ? parent : (TSNode){0};
1805 }
1806 }
1807 return (TSNode){0};
1808}
1809
1810static TSNode declared_class_name_owner(TSNode node, const CBMLangSpec *spec) {
1811 for (TSNode parent = ts_node_parent(node); !ts_node_is_null(parent);

Callers 1

record_lexical_bindingFunction · 0.85

Calls 2

cbm_kind_in_setFunction · 0.85
field_contains_nodeFunction · 0.85

Tested by

no test coverage detected