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