Try to emit a channel from the second argument of an Elixir call. */
| 891 | |
| 892 | /* Try to emit a channel from the second argument of an Elixir call. */ |
| 893 | static 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 | |
| 904 | static void elixir_process_call(CBMExtractCtx *ctx, TSNode call) { |
| 905 | TSNode target = ts_node_child_by_field_name(call, TS_FIELD("target")); |
no test coverage detected