For C++/CUDA template_declaration, find the inner function_definition or declaration.
| 2978 | |
| 2979 | // For C++/CUDA template_declaration, find the inner function_definition or declaration. |
| 2980 | static TSNode unwrap_template_inner(TSNode node, CBMLanguage lang) { |
| 2981 | TSNode inner = find_cpp_template_inner_node(node, lang); |
| 2982 | if (!ts_node_is_null(inner)) { |
| 2983 | return inner; |
| 2984 | } |
| 2985 | return node; |
| 2986 | } |
| 2987 | |
| 2988 | // C/C++/CUDA/GLSL: parameters live on function_declarator inside declarator chain. |
| 2989 | static TSNode find_c_params(TSNode func_node) { |
no test coverage detected