diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/extensions.rs')
-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 { |