Zig: resolve test_declaration name from string→string_content.
| 336 | |
| 337 | // Zig: resolve test_declaration name from string→string_content. |
| 338 | static TSNode resolve_zig_test_name(TSNode node) { |
| 339 | TSNode str_node = cbm_find_child_by_kind(node, "string"); |
| 340 | if (!ts_node_is_null(str_node)) { |
| 341 | TSNode content = cbm_find_child_by_kind(str_node, "string_content"); |
| 342 | if (!ts_node_is_null(content)) { |
| 343 | return content; |
| 344 | } |
| 345 | } |
| 346 | TSNode null_node = {0}; |
| 347 | return null_node; |
| 348 | } |
| 349 | |
| 350 | // VimScript: resolve function_definition name from function_declaration child. |
| 351 | static TSNode resolve_vimscript_func_name(TSNode node) { |
no test coverage detected