mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
provide completion in struct patterns
This commit is contained in:
parent
7bde8012cb
commit
5fe19d2fbd
7 changed files with 134 additions and 21 deletions
|
@ -4,6 +4,7 @@ mod presentation;
|
|||
|
||||
mod complete_dot;
|
||||
mod complete_struct_literal;
|
||||
mod complete_struct_pattern;
|
||||
mod complete_pattern;
|
||||
mod complete_fn_param;
|
||||
mod complete_keyword;
|
||||
|
@ -65,6 +66,7 @@ pub(crate) fn completions(db: &db::RootDatabase, position: FilePosition) -> Opti
|
|||
complete_scope::complete_scope(&mut acc, &ctx);
|
||||
complete_dot::complete_dot(&mut acc, &ctx);
|
||||
complete_struct_literal::complete_struct_literal(&mut acc, &ctx);
|
||||
complete_struct_pattern::complete_struct_pattern(&mut acc, &ctx);
|
||||
complete_pattern::complete_pattern(&mut acc, &ctx);
|
||||
complete_postfix::complete_postfix(&mut acc, &ctx);
|
||||
Some(acc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue