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

Function elixir_emit_second_arg

internal/cbm/extract_channels.c:893–902  ·  view source on GitHub ↗

Try to emit a channel from the second argument of an Elixir call. */

Source from the content-addressed store, hash-verified

891
892/* Try to emit a channel from the second argument of an Elixir call. */
893static void elixir_emit_second_arg(CBMExtractCtx *ctx, TSNode call, TSNode args,
894 const char *transport, CBMChannelDirection direction) {
895 if (ts_node_is_null(args)) {
896 return;
897 }
898 const char *val = elixir_nth_arg_literal(ctx, args, SKIP_ONE);
899 if (val) {
900 push_channel(ctx, val, transport, direction, call);
901 }
902}
903
904static void elixir_process_call(CBMExtractCtx *ctx, TSNode call) {
905 TSNode target = ts_node_child_by_field_name(call, TS_FIELD("target"));

Callers 1

elixir_process_callFunction · 0.85

Calls 2

elixir_nth_arg_literalFunction · 0.85
push_channelFunction · 0.85

Tested by

no test coverage detected