diff options
author | Aleksey Kladov <[email protected]> | 2020-04-03 18:59:28 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-03 20:00:15 +0100 |
commit | adbcedde1812b728726419f24000bf123b22fef9 (patch) | |
tree | 1bc2cd72a1fc81f49fef36c408d82ebdb3207969 /crates/ra_syntax/src | |
parent | 6a2dd7bafc24ac405aebf29f04120ca071019e92 (diff) |
Remove the second code-path for completing names in patterns
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/ast/extensions.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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 { | |||
325 | pub fn is_ref(&self) -> bool { | 325 | pub fn is_ref(&self) -> bool { |
326 | self.syntax().children_with_tokens().any(|n| n.kind() == T![ref]) | 326 | self.syntax().children_with_tokens().any(|n| n.kind() == T![ref]) |
327 | } | 327 | } |
328 | pub fn has_at(&self) -> bool { | ||
329 | self.syntax().children_with_tokens().any(|it| it.kind() == T![@]) | ||
330 | } | ||
328 | } | 331 | } |
329 | 332 | ||
330 | pub struct SlicePatComponents { | 333 | pub struct SlicePatComponents { |