| 1264 | // --- String literal collection --- |
| 1265 | |
| 1266 | static 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 | |
| 1276 | static void handle_string_refs(CBMExtractCtx *ctx, TSNode node, const WalkState *state) { |
| 1277 | const char *kind = ts_node_type(node); |
no outgoing calls
no test coverage detected