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

Function js_node_text_is

internal/cbm/extract_defs.c:9255–9263  ·  view source on GitHub ↗

True when text of `node` equals `want` exactly (no arena allocation). */

Source from the content-addressed store, hash-verified

9253
9254/* True when text of `node` equals `want` exactly (no arena allocation). */
9255static bool js_node_text_is(TSNode node, const char *source, const char *want) {
9256 if (ts_node_is_null(node)) {
9257 return false;
9258 }
9259 uint32_t start = ts_node_start_byte(node);
9260 uint32_t end = ts_node_end_byte(node);
9261 size_t len = strlen(want);
9262 return end >= start && (size_t)(end - start) == len && memcmp(source + start, want, len) == 0;
9263}
9264
9265/* #1916: `axios.create(...)` — the factory of a configured axios instance
9266 * (the vue-element-admin / RuoYi `request.js` wrapper). Only the literal

Callers 3

js_is_axios_create_callFunction · 0.85
js_axios_create_base_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected