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

Function objectscript_callee_leaf

internal/cbm/extract_calls.c:4105–4119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4103}
4104
4105static TSNode objectscript_callee_leaf(TSNode expr) {
4106 if (ts_node_is_null(expr)) {
4107 return (TSNode){0};
4108 }
4109 const char *kind = ts_node_type(expr);
4110 if (strcmp(kind, "method_name") == 0 && ts_node_named_child_count(expr) > 0) {
4111 return ts_node_named_child(expr, 0);
4112 }
4113 if (strcmp(kind, "line_ref") == 0) {
4114 static const char *const identifier_kinds[] = {"objectscript_identifier",
4115 "objectscript_identifier_special", NULL};
4116 return first_named_descendant_of_kind(expr, identifier_kinds, 4);
4117 }
4118 return (TSNode){0};
4119}
4120
4121static TSNode language_specific_callee_expr(CBMLanguage language, TSNode node) {
4122 const char *kind = ts_node_type(node);

Callers 1

Calls 1

Tested by

no test coverage detected