Check if a node type is a string literal */
| 46 | |
| 47 | /* Check if a node type is a string literal */ |
| 48 | static int is_string_like(const char *kind) { |
| 49 | return (strcmp(kind, "string") == 0 || strcmp(kind, "string_literal") == 0 || |
| 50 | strcmp(kind, "interpreted_string_literal") == 0 || |
| 51 | strcmp(kind, "raw_string_literal") == 0 || strcmp(kind, "string_content") == 0); |
| 52 | } |
| 53 | |
| 54 | /* Strip surrounding quotes from a string, return arena-allocated copy */ |
| 55 | static const char *strip_quotes(CBMArena *a, const char *text) { |
no outgoing calls
no test coverage detected