tree-sitter-elixir gives a call's arguments node no field name, so it is * found positionally. Mirrors elixir_call_args() in extract_defs.c, which the * definition side has always used for the same reason. */
| 552 | * found positionally. Mirrors elixir_call_args() in extract_defs.c, which the |
| 553 | * definition side has always used for the same reason. */ |
| 554 | static TSNode elixir_call_arguments_fallback(TSNode node) { |
| 555 | TSNode args = ts_node_child_by_field_name(node, TS_FIELD("arguments")); |
| 556 | if (ts_node_is_null(args) && ts_node_child_count(node) > 1) { |
| 557 | args = ts_node_child(node, 1); |
| 558 | } |
| 559 | return args; |
| 560 | } |
| 561 | |
| 562 | // Erlang: extract callee from call node's first child. |
| 563 | static char *extract_erlang_callee(CBMArena *a, TSNode node, const char *source, const char *nk) { |