Skip to main content

extract_function_signature

Function extract_function_signature 

Source
pub fn extract_function_signature(
    func_node: Node<'_>,
    source: &[u8],
    lang: Language,
) -> String
Expand description

Extract the function signature from a definition node.

For Python, reconstructs from parameter nodes. For other languages, extracts the raw text of parameters and return type.