Add missing definitelyDoesNotContainName methods

Some implementations of definitelyDoesNotContainName method were
missing that led to performance problems during symbols resolution
using TowerResolver.

Relates to KT-39139.
This commit is contained in:
Ilya Muradyan
2020-06-02 12:40:46 +03:00
committed by Ilya Chernikov
parent 262e21fcbc
commit b74692e96b
3 changed files with 38 additions and 0 deletions
@@ -90,4 +90,7 @@ class LexicalChainedScope @JvmOverloads constructor(
p.println("}")
}
override fun definitelyDoesNotContainName(name: Name): Boolean {
return memberScopes.all { it.definitelyDoesNotContainName(name) }
}
}