Add missing recordLookup implementations

This commit is contained in:
Ilya Muradyan
2020-06-17 15:33:39 +03:00
committed by Ilya Chernikov
parent 7526ff9484
commit 573c60ed6b
2 changed files with 12 additions and 0 deletions
@@ -91,6 +91,14 @@ class LexicalChainedScope private constructor(
p.println("}")
}
override fun definitelyDoesNotContainName(name: Name): Boolean {
return memberScopes.all { it.definitelyDoesNotContainName(name) }
}
override fun recordLookup(name: Name, location: LookupLocation) {
memberScopes.forEach { it.recordLookup(name, location) }
}
companion object {
@JvmOverloads
@@ -46,5 +46,9 @@ class InnerClassesScopeWrapper(val workerScope: MemberScope) : MemberScopeImpl()
override fun definitelyDoesNotContainName(name: Name) = workerScope.definitelyDoesNotContainName(name)
override fun recordLookup(name: Name, location: LookupLocation) {
workerScope.recordLookup(name, location)
}
override fun toString() = "Classes from $workerScope"
}