| 543 | // --- String literal collection --- |
| 544 | |
| 545 | static 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 | |
| 555 | static void handle_string_refs(CBMExtractCtx *ctx, TSNode node, const WalkState *state) { |
| 556 | const char *kind = ts_node_type(node); |
no outgoing calls
no test coverage detected