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

Function strip_generics

internal/cbm/lsp/java_lsp.c:226–233  ·  view source on GitHub ↗

Strip generic parameters from a type text (List → List). */

Source from the content-addressed store, hash-verified

224
225/* Strip generic parameters from a type text (List<String> → List). */
226static const char *strip_generics(CBMArena *a, const char *type_text) {
227 if (!type_text)
228 return NULL;
229 const char *lt = strchr(type_text, '<');
230 if (!lt)
231 return type_text;
232 return cbm_arena_strndup(a, type_text, (size_t)(lt - type_text));
233}
234
235/* Strip array suffix (`int[]` → `int`, `String[][]` → `String`, dim=2). */
236static const char *unwrap_array_text(CBMArena *a, const char *type_text, int *out_dim) {

Callers 3

resolve_method_referenceFunction · 0.85
parse_param_text_fullFunction · 0.85

Calls 1

cbm_arena_strndupFunction · 0.50

Tested by

no test coverage detected