FIR IDE: Add visibility checks to the completion

Visibility checks currently do not work in some cases, for example:

- public nested class of private class is seen globally
- private_for_this does not work
- some other cases I am not yet aware of

If `FirVisibilityChecker.isVisible` fix those issues, they will be fixed
automatically in the completion
This commit is contained in:
Roman Golyshev
2021-03-30 14:48:38 +03:00
committed by Space
parent 78b2324a51
commit e0fca9d2f6
24 changed files with 303 additions and 32 deletions
@@ -6,3 +6,5 @@ fun globalFun2(): Int = 1
object Some {
fun globalFun3(): Int = 3
}
private fun globalFunPrivate() {}
@@ -7,3 +7,4 @@ fun testFun() {
// EXIST: globalFun1, globalFun2
// ABSENT: globalFun3
// ABSENT: globalFunPrivate