support items that visible to the parent module

This commit is contained in:
Ekaterina Babshukova 2019-10-16 16:49:35 +03:00
parent 55e1910d00
commit b5a3ee93e2
3 changed files with 68 additions and 5 deletions

View file

@ -152,6 +152,7 @@ pub(crate) fn classify_name_ref(
AssocItem(item) => Some(from_assoc_item(db, item)),
LocalBinding(Either::A(pat)) => from_pat(db, file_id, pat),
LocalBinding(Either::B(par)) => {
// Not really supported
let kind = NameKind::SelfParam(par);
Some(NameDefinition { kind, container, visibility })
}