Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/context.rs')
| -rw-r--r-- | crates/ide-completion/src/context.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/ide-completion/src/context.rs b/crates/ide-completion/src/context.rs index 8fd059f87c..7c53db9bf2 100644 --- a/crates/ide-completion/src/context.rs +++ b/crates/ide-completion/src/context.rs @@ -199,7 +199,7 @@ pub(super) enum Qualified { #[derive(Debug, Clone, PartialEq, Eq)] pub(super) struct PatternContext { pub(super) refutability: PatternRefutability, - pub(super) param_ctx: Option<(ast::ParamList, ast::Param, ParamKind)>, + pub(super) param_ctx: Option<ParamContext>, pub(super) has_type_ascription: bool, pub(super) parent_pat: Option<ast::Pat>, pub(super) ref_token: Option<SyntaxToken>, @@ -209,6 +209,13 @@ pub(super) struct PatternContext { pub(super) impl_: Option<ast::Impl>, } +#[derive(Debug, Clone, PartialEq, Eq)] +pub(super) struct ParamContext { + pub(super) param_list: ast::ParamList, + pub(super) param: ast::Param, + pub(super) kind: ParamKind, +} + /// The state of the lifetime we are completing. #[derive(Debug)] pub(super) struct LifetimeContext { |