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:3828–3840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3826}
3827
3828static void push_simple_class_def(CBMExtractCtx *ctx, TSNode node, char *name, const char *label) {
3829 CBMArena *a = ctx->arena;
3830 CBMDefinition def;
3831 memset(&def, 0, sizeof(def));
3832 def.name = name;
3833 def.qualified_name = cbm_fqn_compute(a, ctx->project, ctx->rel_path, qn_safe_segment(a, name));
3834 def.label = label;
3835 def.file_path = ctx->rel_path;
3836 def.start_line = ts_node_start_point(node).row + TS_LINE_OFFSET;
3837 def.end_line = ts_node_end_point(node).row + TS_LINE_OFFSET;
3838 def.is_exported = true;
3839 cbm_defs_push(&ctx->result->defs, a, def);
3840}
3841
3842// Find TOML table key name from children.
3843static 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