Check if a node type is a string literal */
| 60 | |
| 61 | /* Check if a node type is a string literal */ |
| 62 | static int is_string_like(const char *kind) { |
| 63 | return (strcmp(kind, "string") == 0 || strcmp(kind, "string_literal") == 0 || |
| 64 | strcmp(kind, "interpreted_string_literal") == 0 || |
| 65 | strcmp(kind, "raw_string_literal") == 0 || strcmp(kind, "string_content") == 0 || |
| 66 | strcmp(kind, "line_string_literal") == 0); |
| 67 | } |
| 68 | |
| 69 | /* Strip surrounding quotes from a string, return arena-allocated copy */ |
| 70 | static const char *strip_quotes(CBMArena *a, const char *text) { |
no outgoing calls
no test coverage detected