Skip to main content

extract_function_name

Function extract_function_name 

Source
pub fn extract_function_name(
    node: &Node<'_>,
    source: &str,
    _lang: &str,
) -> Option<String>
Expand description

Extract the function name from a C/C++ function_definition node by walking the declarator chain: declarator -> function_declarator -> declarator -> identifier.