Skip to main content

rename_variable

Function rename_variable 

Source
pub fn rename_variable(
    var_name: &str,
    new_name: &str,
    uri: &Url,
    doc: &ParsedDoc,
    position: Position,
) -> WorkspaceEdit
Expand description

Rename a $variable (or parameter) within its enclosing function/method scope. Only produces edits within the single document uri; variables don’t cross files.