Extract methods from an ObjC implementation_definition node.
| 4152 | |
| 4153 | // Extract methods from an ObjC implementation_definition node. |
| 4154 | static 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 |
| 4172 | static void extract_class_methods(CBMExtractCtx *ctx, TSNode class_node, const char *class_qn, |
no test coverage detected