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

Function cbm_is_exported

internal/cbm/helpers.c:238–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236// --- Export detection ---
237
238bool cbm_is_exported(const char *name, CBMLanguage lang) {
239 if (!name || !name[0]) {
240 return false;
241 }
242 switch (lang) {
243 case CBM_LANG_GO:
244 return (name[0] >= 'A' && name[0] <= 'Z');
245 case CBM_LANG_PYTHON:
246 return (name[0] != '_');
247 case CBM_LANG_JAVA:
248 case CBM_LANG_CSHARP:
249 case CBM_LANG_KOTLIN:
250 return (name[0] >= 'A' && name[0] <= 'Z');
251 default:
252 return true;
253 }
254}
255
256// --- Test file detection ---
257

Callers 8

extract_func_defFunction · 0.85
extract_class_defFunction · 0.85
push_method_defFunction · 0.85
extract_rust_implFunction · 0.85
push_var_def_qnFunction · 0.85
extract_schema_fieldFunction · 0.85
extract_class_fieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected