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ยง
Enumsยง
- Call
Receiver ๐Adjust
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 anyOkitem. - 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ยง
- Rename
Result ๐