Skip to main content

extract_functions

Function extract_functions 

pub fn extract_functions(
    path: &str,
    code: &[u8],
    lang: CloneLanguage,
) -> Result<Vec<FunctionFingerprint>>
Expand description

Parse code for lang and return one FunctionFingerprint per function- shaped node. The min-fragment-size filter is applied by the caller against fingerprint.node_count so callers can tune it per-run.