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

Function cs_unwrap_nullable

internal/cbm/lsp/cs_lsp.c:703–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703static const CBMType *cs_unwrap_nullable(const CBMType *t) {
704 if (!t) return t;
705 if (t->kind == CBM_TYPE_TEMPLATE) {
706 const char *n = t->data.template_type.template_name;
707 if (n && strcmp(n, "System.Nullable") == 0) {
708 if (t->data.template_type.template_args && t->data.template_type.template_args[0]) {
709 return t->data.template_type.template_args[0];
710 }
711 }
712 }
713 return t;
714}
715
716const CBMType *cs_eval_expr_type(CSLSPContext *ctx, TSNode node) {
717 if (ts_node_is_null(node) || ctx->eval_depth >= CS_EVAL_MAX_DEPTH) {

Callers 3

cs_eval_invocation_typeFunction · 0.85
cs_resolve_invocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected