Module rename

Module rename 

Source
Expand description

Renaming functionality.

This is mostly front-end for ide_db::rename, but it also includes the tests. This module also implements a couple of magic tricks, like renaming self and to self (to switch between associated function and method).

Structsยง

RenameConfig
RenameError

Enumsยง

CallReceiverAdjust ๐Ÿ”’

Functionsยง

alias_fallback ๐Ÿ”’
find_definitions ๐Ÿ”’
method_to_assoc_fn_call_self_adjust ๐Ÿ”’
ok_if_any ๐Ÿ”’
This is similar to collect::<Result<Vec<_>, _>>, but unlike it, it succeeds if there is any Ok item.
prepare_rename ๐Ÿ”’
Prepares a rename. The sole job of this function is to return the TextRange of the thing that is being targeted for a rename.
rename ๐Ÿ”’
rename_self_to_param ๐Ÿ”’
rename_to_self ๐Ÿ”’
text_edit_from_self_param ๐Ÿ”’
transform_assoc_fn_into_method_call ๐Ÿ”’
transform_method_call_into_assoc_fn ๐Ÿ”’
will_rename_file ๐Ÿ”’
Called by the client when it is about to rename a file.

Type Aliasesยง

RenameResult ๐Ÿ”’