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

Function cs_unwrap_nullable

internal/cbm/lsp/cs_lsp.c:736–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736static const CBMType *cs_unwrap_nullable(const CBMType *t) {
737 if (!t) return t;
738 if (t->kind == CBM_TYPE_TEMPLATE) {
739 const char *n = t->data.template_type.template_name;
740 if (n && strcmp(n, "System.Nullable") == 0) {
741 if (t->data.template_type.template_args && t->data.template_type.template_args[0]) {
742 return t->data.template_type.template_args[0];
743 }
744 }
745 }
746 return t;
747}
748
749const CBMType *cs_eval_expr_type(CSLSPContext *ctx, TSNode node) {
750 if (ts_node_is_null(node) || ctx->eval_depth >= CS_EVAL_MAX_DEPTH) {

Callers 4

cs_eval_invocation_typeFunction · 0.85
cs_resolve_invocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected