Extract methods from an ObjC implementation_definition node.
| 4733 | |
| 4734 | // Extract methods from an ObjC implementation_definition node. |
| 4735 | static void extract_objc_impl_methods(CBMExtractCtx *ctx, TSNode impl_node, const char *class_qn, |
| 4736 | const CBMLangSpec *spec) { |
| 4737 | uint32_t nc = ts_node_child_count(impl_node); |
| 4738 | for (uint32_t j = 0; j < nc; j++) { |
| 4739 | TSNode inner = ts_node_child(impl_node, j); |
| 4740 | if (ts_node_is_null(inner)) { |
| 4741 | continue; |
| 4742 | } |
| 4743 | if (cbm_kind_in_set(inner, spec->function_node_types)) { |
| 4744 | TSNode nm = resolve_method_name(inner, ctx->language); |
| 4745 | if (!ts_node_is_null(nm)) { |
| 4746 | push_method_def(ctx, inner, impl_node, class_qn, spec, nm); |
| 4747 | } |
| 4748 | } |
| 4749 | } |
| 4750 | } |
| 4751 | |
| 4752 | // Extract methods inside a class body |
| 4753 | static void extract_class_methods(CBMExtractCtx *ctx, TSNode class_node, const char *class_qn, |
no test coverage detected