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

Function cs_process_using_statement

internal/cbm/lsp/cs_lsp.c:1588–1597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1586}
1587
1588static void cs_process_using_statement(CSLSPContext *ctx, TSNode node) {
1589 /* `using (var x = expr) { ... }` — bind x. */
1590 TSNode vd = cs_child_named_kind(node, "variable_declaration");
1591 if (!ts_node_is_null(vd)) {
1592 /* Wrap as if it were a local_declaration_statement and dispatch. */
1593 TSNode wrapper;
1594 memset(&wrapper, 0, sizeof(wrapper));
1595 cs_process_local_decl(ctx, node);
1596 }
1597}
1598
1599static void cs_process_assignment(CSLSPContext *ctx, TSNode node) {
1600 TSNode lhs = ts_node_child_by_field_name(node, "left", 4);

Callers 1

cs_resolve_calls_in_nodeFunction · 0.85

Calls 2

cs_child_named_kindFunction · 0.85
cs_process_local_declFunction · 0.85

Tested by

no test coverage detected