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

Function is_string_node

internal/cbm/extract_unified.c:545–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543// --- String literal collection ---
544
545static bool is_string_node(const char *kind) {
546 /* Common string literal node types across tree-sitter grammars */
547 return (strcmp(kind, "string_literal") == 0 || strcmp(kind, "string") == 0 ||
548 strcmp(kind, "string_content") == 0 ||
549 strcmp(kind, "interpreted_string_literal") == 0 ||
550 strcmp(kind, "raw_string_literal") == 0 || strcmp(kind, "string_value") == 0 ||
551 /* YAML string types */
552 strcmp(kind, "double_quote_scalar") == 0 || strcmp(kind, "single_quote_scalar") == 0);
553}
554
555static void handle_string_refs(CBMExtractCtx *ctx, TSNode node, const WalkState *state) {
556 const char *kind = ts_node_type(node);

Callers 2

handle_string_constantsFunction · 0.85
handle_string_refsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected