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

Function jv_java_fields

internal/cbm/doclink_jvm.c:2214–2227  ·  view source on GitHub ↗

A field or constant declaration: one member per declarator. */

Source from the content-addressed store, hash-verified

2212
2213/* A field or constant declaration: one member per declarator. */
2214static void jv_java_fields(jv_scan_t *s, TSNode decl, const jv_frame_t *fr) {
2215 if (!jv_member_ok(s, decl, (TSNode){0}, false, fr->inner_depth)) {
2216 return;
2217 }
2218 jv_member_seen(s, decl, (TSNode){0}, false);
2219 uint32_t line = jv_line(decl);
2220 uint32_t nc = ts_node_named_child_count(decl);
2221 for (uint32_t i = 0; i < nc; i++) {
2222 TSNode vd = ts_node_named_child(decl, i);
2223 if (jv_kind(vd, "variable_declarator")) {
2224 jv_emit_value(s, line, jv_field(vd, "name"), "", "-", fr);
2225 }
2226 }
2227}
2228
2229/* The components of a record are its fields; each keeps its type, which is
2230 * the canonical constructor's signature. */

Callers 1

jv_java_containerFunction · 0.85

Calls 6

jv_member_okFunction · 0.85
jv_member_seenFunction · 0.85
jv_lineFunction · 0.85
jv_kindFunction · 0.85
jv_emit_valueFunction · 0.85
jv_fieldFunction · 0.85

Tested by

no test coverage detected