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

Function is_string_node

internal/cbm/extract_unified.c:1266–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1264// --- String literal collection ---
1265
1266static bool is_string_node(const char *kind) {
1267 /* Common string literal node types across tree-sitter grammars */
1268 return (strcmp(kind, "string_literal") == 0 || strcmp(kind, "string") == 0 ||
1269 strcmp(kind, "string_content") == 0 ||
1270 strcmp(kind, "interpreted_string_literal") == 0 ||
1271 strcmp(kind, "raw_string_literal") == 0 || strcmp(kind, "string_value") == 0 ||
1272 /* YAML string types */
1273 strcmp(kind, "double_quote_scalar") == 0 || strcmp(kind, "single_quote_scalar") == 0);
1274}
1275
1276static void handle_string_refs(CBMExtractCtx *ctx, TSNode node, const WalkState *state) {
1277 const char *kind = ts_node_type(node);

Callers 3

handle_string_constantsFunction · 0.85
handle_string_refsFunction · 0.85
url_builder_literal_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected