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:1828–1836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1826}
1827
1828static TSNode declared_function_name_owner(TSNode node, const CBMLangSpec *spec) {
1829 for (TSNode parent = ts_node_parent(node); !ts_node_is_null(parent);
1830 parent = ts_node_parent(parent)) {
1831 if (spec->function_node_types && cbm_kind_in_set(parent, spec->function_node_types)) {
1832 return field_contains_node(parent, "name", node) ? parent : (TSNode){0};
1833 }
1834 }
1835 return (TSNode){0};
1836}
1837
1838static TSNode declared_class_name_owner(TSNode node, const CBMLangSpec *spec) {
1839 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