rust/crates/ide-assists/src/handlers
Dorian Scheidt 39d17efde7 feat: Generate static method using Self::assoc() syntax
This change improves the `generate_function` assist to support generating static methods/associated functions using the `Self::assoc()` syntax. Previously, one could generate a static method, but only when specifying the type name directly (like `Foo::assoc()`). After this change, `Self` is supported as well as the type name.

Fixes #13012
2022-08-16 15:37:24 -05:00
..
add_explicit_type.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
add_label_to_loop.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
add_lifetime_to_type.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
add_missing_impl_members.rs Fixes tests 2022-08-10 16:29:23 +08:00
add_missing_match_arms.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
add_return_type.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
add_turbo_fish.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
apply_demorgan.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
auto_import.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
change_visibility.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_bool_then.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_comment_block.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_integer_literal.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_into_to_from.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_iter_for_each_to_for.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
convert_let_else_to_match.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_to_guarded_return.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
convert_tuple_struct_to_named_struct.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
convert_while_to_loop.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
destructure_tuple_binding.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
expand_glob_import.rs fix: Order ItemScope::entries results 2022-07-28 19:28:56 +02:00
extract_function.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
extract_module.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
extract_struct_from_enum_variant.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
extract_type_alias.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
extract_variable.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
fix_visibility.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
flip_binexpr.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
flip_comma.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
flip_trait_bound.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_constant.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_default_from_enum_variant.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_default_from_new.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_delegate_methods.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_deref.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
generate_derive.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_documentation_template.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_enum_is_method.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_enum_projection_method.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
generate_enum_variant.rs Support PathPat paths in generate_enum_variant 2022-08-02 14:37:12 -04:00
generate_from_impl_for_enum.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
generate_function.rs feat: Generate static method using Self::assoc() syntax 2022-08-16 15:37:24 -05:00
generate_getter.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_impl.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_is_empty_from_len.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
generate_new.rs fix generate_new doc 2022-07-23 11:09:01 -04:00
generate_setter.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
inline_call.rs Remove FIXME comment for unreachable fallback. 2022-07-26 10:59:19 -05:00
inline_local_variable.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
inline_type_alias.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
introduce_named_generic.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
introduce_named_lifetime.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
invert_if.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
merge_imports.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
merge_match_arms.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
move_bounds.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
move_from_mod_rs.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
move_guard.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
move_module_to_file.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
move_to_mod_rs.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
number_representation.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
promote_local_to_const.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
pull_assignment_up.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
qualify_method_call.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
qualify_path.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
raw_string.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
remove_dbg.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
remove_mut.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
remove_unused_param.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
reorder_fields.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
reorder_impl_items.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
replace_derive_with_manual_impl.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
replace_if_let_with_match.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
replace_let_with_if_let.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
replace_qualified_name_with_use.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
replace_string_with_char.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
replace_try_expr_with_match.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
replace_turbofish_with_explicit_type.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
sort_items.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
split_import.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
toggle_ignore.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
unmerge_use.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
unnecessary_async.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
unwrap_block.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
unwrap_result_return_type.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
wrap_return_type_in_result.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00