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

Function push_simple_class_def

internal/cbm/extract_defs.c:3820–3832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3818}
3819
3820static void push_simple_class_def(CBMExtractCtx *ctx, TSNode node, char *name, const char *label) {
3821 CBMArena *a = ctx->arena;
3822 CBMDefinition def;
3823 memset(&def, 0, sizeof(def));
3824 def.name = name;
3825 def.qualified_name = cbm_fqn_compute(a, ctx->project, ctx->rel_path, qn_safe_segment(a, name));
3826 def.label = label;
3827 def.file_path = ctx->rel_path;
3828 def.start_line = ts_node_start_point(node).row + TS_LINE_OFFSET;
3829 def.end_line = ts_node_end_point(node).row + TS_LINE_OFFSET;
3830 def.is_exported = true;
3831 cbm_defs_push(&ctx->result->defs, a, def);
3832}
3833
3834// Find TOML table key name from children.
3835static char *find_toml_key_name(CBMArena *a, TSNode node, const char *source) {

Callers 1

extract_config_class_defFunction · 0.85

Calls 3

cbm_fqn_computeFunction · 0.85
qn_safe_segmentFunction · 0.85
cbm_defs_pushFunction · 0.85

Tested by

no test coverage detected