Check if a node is a comment node type.
| 1279 | |
| 1280 | // Check if a node is a comment node type. |
| 1281 | static bool is_comment_node(const char *kind) { |
| 1282 | return (strcmp(kind, "comment") == 0 || strcmp(kind, "block_comment") == 0 || |
| 1283 | strcmp(kind, "line_comment") == 0 || strcmp(kind, "multiline_comment") == 0); |
| 1284 | } |
| 1285 | |
| 1286 | // Python-specific: docstring as first expression_statement -> string in function body. |
| 1287 | static const char *extract_python_docstring(CBMArena *a, TSNode node, const char *source) { |
no outgoing calls
no test coverage detected