Get the "arguments" node for an Elixir call, with fallback to second child.
| 4348 | |
| 4349 | // Get the "arguments" node for an Elixir call, with fallback to second child. |
| 4350 | static TSNode elixir_call_args(TSNode node) { |
| 4351 | TSNode args = ts_node_child_by_field_name(node, TS_FIELD("arguments")); |
| 4352 | if (ts_node_is_null(args) && ts_node_child_count(node) > SECOND_CHILD_IDX) { |
| 4353 | args = ts_node_child(node, SECOND_CHILD_IDX); |
| 4354 | } |
| 4355 | return args; |
| 4356 | } |
| 4357 | |
| 4358 | // Handle Elixir def/defp/defmacro — extract function definition. |
| 4359 | static void extract_elixir_func_def(CBMExtractCtx *ctx, TSNode node, const char *macro) { |
no outgoing calls
no test coverage detected