Check if a node is a comment node type.
| 1208 | |
| 1209 | // Check if a node is a comment node type. |
| 1210 | static bool is_comment_node(const char *kind) { |
| 1211 | return (strcmp(kind, "comment") == 0 || strcmp(kind, "block_comment") == 0 || |
| 1212 | strcmp(kind, "line_comment") == 0 || strcmp(kind, "multiline_comment") == 0); |
| 1213 | } |
| 1214 | |
| 1215 | // Extract comment text, truncating to MAX_COMMENT_LEN. |
| 1216 | // #1017: snap the cut point back to a complete UTF-8 codepoint boundary. |
no outgoing calls
no test coverage detected