Get the "arguments" node for an Elixir call, with fallback to second child.
| 8766 | |
| 8767 | // Get the "arguments" node for an Elixir call, with fallback to second child. |
| 8768 | static TSNode elixir_call_args(TSNode node) { |
| 8769 | TSNode args = ts_node_child_by_field_name(node, TS_FIELD("arguments")); |
| 8770 | if (ts_node_is_null(args) && ts_node_child_count(node) > SECOND_CHILD_IDX) { |
| 8771 | args = ts_node_child(node, SECOND_CHILD_IDX); |
| 8772 | } |
| 8773 | return args; |
| 8774 | } |
| 8775 | |
| 8776 | // Handle Elixir def/defp/defmacro — extract function definition. |
| 8777 | static void extract_elixir_func_def(CBMExtractCtx *ctx, TSNode node, const char *macro) { |
no outgoing calls
no test coverage detected