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

Function child_by_kind

internal/cbm/lsp/java_lsp.c:202–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static TSNode child_by_kind(TSNode parent, const char *kind) {
203 if (ts_node_is_null(parent))
204 return parent;
205 uint32_t n = ts_node_named_child_count(parent);
206 for (uint32_t i = 0; i < n; i++) {
207 TSNode c = ts_node_named_child(parent, i);
208 if (strcmp(ts_node_type(c), kind) == 0)
209 return c;
210 }
211 TSNode null_node;
212 memset(&null_node, 0, sizeof(null_node));
213 return null_node;
214}
215
216static int count_call_args(TSNode call_node) {
217 if (ts_node_is_null(call_node))

Callers 1

java_process_statementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected