rust/crates/ide-assists/src
bors 2271b82007 Auto merge of #16264 - roife:refactor/refactor-generate-delegate-trait, r=Veykril
internal: clean and enhance readability for `generate_delegate_trait`

Continue from #16112

This PR primarily involves some cleanup and simple refactoring work, including:

- Adding numerous comments to layer the code and explain the behavior of each step.
- Renaming some variables to make them more sensible.
- Simplify certain operations using a more elegant approach.

The goal is to make this intricate implementation clearer and facilitate future maintenance.

In addition to this, the PR also removes redundant `path_transform` operations for `type_gen_args`.
Taking the example of `impl Trait<T1> for S<S1>`, where `S1` is considered. The struct `S` must be in the file where the user triggers code actions, so there's no need for the `path_transform`. Furthermore, before performing the transform, we've already renamed `S1`, ensuring it won't clash with existing generics parameters. Therefore, there's no need to transform it.
2024-01-05 13:37:54 +00:00
..
handlers Auto merge of #16264 - roife:refactor/refactor-generate-delegate-trait, r=Veykril 2024-01-05 13:37:54 +00:00
tests fix: rewrite code_action generate_delegate_trait 2023-12-13 11:22:42 +08:00
utils Use HashSet to enhance performance in for_unique_generic_name in suggest_name 2024-01-02 21:33:06 +08:00
assist_config.rs
assist_context.rs
lib.rs Don't explicitly warn against semicolon_in_expressions_from_macros 2023-12-05 11:35:09 +01:00
tests.rs Auto merge of #16082 - DropDemBits:structured-snippet-migrate-5, r=Veykril 2024-01-02 10:42:16 +00:00
utils.rs fix: use original range to deal with macros in promote_local_to_const 2024-01-02 10:33:48 +01:00