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

Source from the content-addressed store, hash-verified

1901}
1902
1903static TSNode declared_function_name_owner(TSNode node, const CBMLangSpec *spec) {
1904 for (TSNode parent = ts_node_parent(node); !ts_node_is_null(parent);
1905 parent = ts_node_parent(parent)) {
1906 if (spec->function_node_types && cbm_kind_in_set(parent, spec->function_node_types)) {
1907 return field_contains_node(parent, "name", node) ? parent : (TSNode){0};
1908 }
1909 }
1910 return (TSNode){0};
1911}
1912
1913static TSNode declared_class_name_owner(TSNode node, const CBMLangSpec *spec) {
1914 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