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

Function py_text

internal/cbm/doclink_py.c:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static void py_text(const CBMExtractCtx *ctx, TSNode n, const char **s, size_t *len) {
107 uint32_t a = ts_node_start_byte(n);
108 uint32_t b = ts_node_end_byte(n);
109 if (b > (uint32_t)ctx->source_len || a > b) {
110 *s = "";
111 *len = 0;
112 return;
113 }
114 *s = ctx->source + a;
115 *len = b - a;
116}
117
118/* One `from module import names` statement of the package's top level. */
119static void py_from_import(const CBMExtractCtx *ctx, TSNode stmt, py_sb_t *sb) {

Callers 1

py_from_importFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected