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

Function extract_channels_go

internal/cbm/extract_channels.c:628–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628static void extract_channels_go(CBMExtractCtx *ctx) {
629 TSNodeStack stack;
630 ts_nstack_init(&stack, ctx->arena, CHAN_STACK_CAP);
631 ts_nstack_push(&stack, ctx->arena, ctx->root);
632
633 while (stack.count > 0) {
634 TSNode node = ts_nstack_pop(&stack);
635 if (strcmp(ts_node_type(node), "call_expression") == 0) {
636 go_process_call(ctx, node);
637 }
638 uint32_t count = ts_node_child_count(node);
639 for (int i = (int)count - SKIP_ONE; i >= 0; i--) {
640 ts_nstack_push(&stack, ctx->arena, ts_node_child(node, (uint32_t)i));
641 }
642 }
643}
644
645/* ══════════════════════════════════════════════════════════════════
646 * Java — JSR 356 WebSocket, Spring STOMP/WebSocket

Callers 1

cbm_extract_channelsFunction · 0.85

Calls 4

ts_nstack_initFunction · 0.85
ts_nstack_pushFunction · 0.85
ts_nstack_popFunction · 0.85
go_process_callFunction · 0.85

Tested by

no test coverage detected