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

Function go_scan_value_decl

internal/cbm/doclink_go.c:1687–1697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685}
1686
1687static void go_scan_value_decl(go_scan_t *s, TSNode decl) {
1688 go_kids_t k;
1689 TSNode ch;
1690 for (bool ok = go_kids_first(&k, decl, &ch); ok; ok = go_kids_next(&k, &ch)) {
1691 if (go_kind_is(ch, "const_spec") || go_kind_is(ch, "var_spec")) {
1692 go_scan_value_spec(s, ch, true);
1693 } else if (go_kind_is(ch, "var_spec_list")) {
1694 go_scan_var_list(s, ch);
1695 }
1696 }
1697}
1698
1699/* The content of an import path literal; NULL when it is none this scan can
1700 * record (not a plain string, empty, too long, or with bytes no path has). */

Callers 1

go_scan_topFunction · 0.85

Calls 5

go_kids_firstFunction · 0.85
go_kids_nextFunction · 0.85
go_kind_isFunction · 0.85
go_scan_value_specFunction · 0.85
go_scan_var_listFunction · 0.85

Tested by

no test coverage detected