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

Function cs_item_of_node

internal/cbm/doclink_cs.c:2092–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2090}
2091
2092static int cs_item_of_node(cs_scan_t *s, char tag, TSNode node) {
2093 int i = cs_item_new(s, tag);
2094 if (i >= 0) {
2095 s->items[i].node = node;
2096 s->items[i].start = ts_node_start_byte(node);
2097 s->items[i].line = cs_line(node);
2098 }
2099 return i;
2100}
2101
2102/* True when the first parameter of `params` is written with `this`: an
2103 * extension method. The text before the parameter's type says so, whatever

Callers 3

cs_member_newFunction · 0.85
cs_member_unnamedFunction · 0.85
cs_collect_childFunction · 0.85

Calls 2

cs_item_newFunction · 0.85
cs_lineFunction · 0.85

Tested by

no test coverage detected