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

Function resolve_commonlisp_func_name

internal/cbm/extract_defs.c:440–451  ·  view source on GitHub ↗

CommonLisp: resolve defun name from function_name field or defun_header→sym_lit.

Source from the content-addressed store, hash-verified

438
439// CommonLisp: resolve defun name from function_name field or defun_header→sym_lit.
440static TSNode resolve_commonlisp_func_name(TSNode node) {
441 TSNode fn = ts_node_child_by_field_name(node, TS_FIELD("function_name"));
442 if (!ts_node_is_null(fn)) {
443 return fn;
444 }
445 TSNode header = cbm_find_child_by_kind(node, "defun_header");
446 if (!ts_node_is_null(header)) {
447 return cbm_find_child_by_kind(header, "sym_lit");
448 }
449 TSNode null_node = {0};
450 return null_node;
451}
452
453// Makefile: resolve rule name from targets child or word fallback.
454static TSNode resolve_makefile_func_name(TSNode node) {

Callers 1

resolve_func_name_fpFunction · 0.85

Calls 1

cbm_find_child_by_kindFunction · 0.85

Tested by

no test coverage detected