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

Function is_interpolated_string

internal/cbm/extract_url_fold.c:394–402  ·  view source on GitHub ↗

Python strings fold only when they interpolate (an f-string); a plain * literal keeps the long-standing literal path. */

Source from the content-addressed store, hash-verified

392/* Python strings fold only when they interpolate (an f-string); a plain
393 * literal keeps the long-standing literal path. */
394static bool is_interpolated_string(TSNode node) {
395 uint32_t nc = ts_node_named_child_count(node);
396 for (uint32_t i = 0; i < nc; i++) {
397 if (strcmp(ts_node_type(ts_node_named_child(node, i)), "interpolation") == 0) {
398 return true;
399 }
400 }
401 return false;
402}
403
404static bool is_foldable_arg(TSNode arg) {
405 const char *k = ts_node_type(arg);

Callers 1

is_foldable_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected