feat: suggest name in let_stmt and fn_param

This commit is contained in:
roife 2024-09-03 05:15:21 +08:00
parent b207e5781e
commit 492e66ceab
5 changed files with 53 additions and 2 deletions

View file

@ -264,6 +264,7 @@ pub(crate) struct PatternContext {
pub(crate) refutability: PatternRefutability,
pub(crate) param_ctx: Option<ParamContext>,
pub(crate) has_type_ascription: bool,
pub(crate) should_suggest_name: bool,
pub(crate) parent_pat: Option<ast::Pat>,
pub(crate) ref_token: Option<SyntaxToken>,
pub(crate) mut_token: Option<SyntaxToken>,