For C++/CUDA template_declaration, find the inner function_definition or declaration.
| 3367 | |
| 3368 | // For C++/CUDA template_declaration, find the inner function_definition or declaration. |
| 3369 | static TSNode unwrap_template_inner(TSNode node, CBMLanguage lang) { |
| 3370 | TSNode inner = find_cpp_template_inner_node(node, lang); |
| 3371 | if (!ts_node_is_null(inner)) { |
| 3372 | return inner; |
| 3373 | } |
| 3374 | return node; |
| 3375 | } |
| 3376 | |
| 3377 | // C/C++/CUDA/GLSL: parameters live on function_declarator inside declarator chain. |
| 3378 | static TSNode find_c_params(TSNode func_node) { |
no test coverage detected