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

Extract methods from an ObjC implementation_definition node.

Source from the content-addressed store, hash-verified

4152
4153// Extract methods from an ObjC implementation_definition node.
4154static void extract_objc_impl_methods(CBMExtractCtx *ctx, TSNode impl_node, const char *class_qn,
4155 const CBMLangSpec *spec) {
4156 uint32_t nc = ts_node_child_count(impl_node);
4157 for (uint32_t j = 0; j < nc; j++) {
4158 TSNode inner = ts_node_child(impl_node, j);
4159 if (ts_node_is_null(inner)) {
4160 continue;
4161 }
4162 if (cbm_kind_in_set(inner, spec->function_node_types)) {
4163 TSNode nm = resolve_method_name(inner, ctx->language);
4164 if (!ts_node_is_null(nm)) {
4165 push_method_def(ctx, inner, impl_node, class_qn, spec, nm);
4166 }
4167 }
4168 }
4169}
4170
4171// Extract methods inside a class body
4172static 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