From adbcedde1812b728726419f24000bf123b22fef9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 3 Apr 2020 19:59:28 +0200 Subject: Remove the second code-path for completing names in patterns --- crates/ra_syntax/src/ast/extensions.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs index 392731dac..bf7d137be 100644 --- a/crates/ra_syntax/src/ast/extensions.rs +++ b/crates/ra_syntax/src/ast/extensions.rs @@ -325,6 +325,9 @@ impl ast::BindPat { pub fn is_ref(&self) -> bool { self.syntax().children_with_tokens().any(|n| n.kind() == T![ref]) } + pub fn has_at(&self) -> bool { + self.syntax().children_with_tokens().any(|it| it.kind() == T![@]) + } } pub struct SlicePatComponents { -- cgit v1.2.3