Remove the second code-path for completing names in patterns

This commit is contained in:
Aleksey Kladov 2020-04-03 19:59:28 +02:00
parent 6a2dd7bafc
commit adbcedde18
4 changed files with 31 additions and 70 deletions

View file

@ -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 {