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

Function extract_objc_impl_methods

internal/cbm/extract_defs.c:4747–4762  ·  view source on GitHub ↗

Extract methods from an ObjC implementation_definition node.

Source from the content-addressed store, hash-verified

4745
4746// Extract methods from an ObjC implementation_definition node.
4747static void extract_objc_impl_methods(CBMExtractCtx *ctx, TSNode impl_node, const char *class_qn,
4748 const CBMLangSpec *spec) {
4749 uint32_t nc = ts_node_child_count(impl_node);
4750 for (uint32_t j = 0; j < nc; j++) {
4751 TSNode inner = ts_node_child(impl_node, j);
4752 if (ts_node_is_null(inner)) {
4753 continue;
4754 }
4755 if (cbm_kind_in_set(inner, spec->function_node_types)) {
4756 TSNode nm = resolve_method_name(inner, ctx->language);
4757 if (!ts_node_is_null(nm)) {
4758 push_method_def(ctx, inner, impl_node, class_qn, spec, nm);
4759 }
4760 }
4761 }
4762}
4763
4764// Extract methods inside a class body
4765static void extract_class_methods(CBMExtractCtx *ctx, TSNode class_node, const char *class_qn,

Callers 1

extract_class_methodsFunction · 0.85

Calls 3

cbm_kind_in_setFunction · 0.85
resolve_method_nameFunction · 0.85
push_method_defFunction · 0.85

Tested by

no test coverage detected