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

Function extract_channels_rust

internal/cbm/extract_channels.c:1035–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033}
1034
1035static void extract_channels_rust(CBMExtractCtx *ctx) {
1036 TSNodeStack stack;
1037 ts_nstack_init(&stack, ctx->arena, CHAN_STACK_CAP);
1038 ts_nstack_push(&stack, ctx->arena, ctx->root);
1039
1040 while (stack.count > 0) {
1041 TSNode node = ts_nstack_pop(&stack);
1042 if (strcmp(ts_node_type(node), "call_expression") == 0) {
1043 rust_process_call(ctx, node);
1044 }
1045 uint32_t count = ts_node_child_count(node);
1046 for (int i = (int)count - SKIP_ONE; i >= 0; i--) {
1047 ts_nstack_push(&stack, ctx->arena, ts_node_child(node, (uint32_t)i));
1048 }
1049 }
1050}
1051
1052/* ══════════════════════════════════════════════════════════════════
1053 * Entry point — language dispatch

Callers 1

cbm_extract_channelsFunction · 0.85

Calls 4

ts_nstack_initFunction · 0.85
ts_nstack_pushFunction · 0.85
ts_nstack_popFunction · 0.85
rust_process_callFunction · 0.85

Tested by

no test coverage detected