Skip to main content

generate_extracted_function

Function generate_extracted_function 

Source
pub fn generate_extracted_function(
    name: &str,
    params: &[String],
    return_kind: &ReturnKind,
    body_text: &str,
    base_indent: &str,
    lang: LangId,
    indent_style: IndentStyle,
) -> String
Expand description

Generate the text for an extracted function.