MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / elixir_call_arguments_fallback

Function elixir_call_arguments_fallback

internal/cbm/extract_calls.c:554–560  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

552 * found positionally. Mirrors elixir_call_args() in extract_defs.c, which the
553 * definition side has always used for the same reason. */
554static 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.
563static char *extract_erlang_callee(CBMArena *a, TSNode node, const char *source, const char *nk) {

Callers 1

handle_callsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected