FIR IDE: implement getCallableNames/getClassifierNames in more scopes

This commit is contained in:
Ilya Kirillov
2020-07-04 00:37:51 +03:00
parent 138f11ee27
commit 88548d988a
2 changed files with 16 additions and 0 deletions
@@ -76,6 +76,14 @@ class JvmMappedScope(
declaredMemberScope.processClassifiersByNameWithSubstitution(name, processor)
}
override fun getCallableNames(): Set<Name> {
return declaredMemberScope.getCallableNames()
}
override fun getClassifierNames(): Set<Name> {
return declaredMemberScope.getClassifierNames()
}
companion object {
data class Signatures(val whiteListSignaturesByName: Map<Name, Set<String>>, val constructorBlackList: Set<String>) {
fun isEmpty() = whiteListSignaturesByName.isEmpty() && constructorBlackList.isEmpty()
@@ -521,6 +521,14 @@ class FirClassSubstitutionScope(
processor(constructor)
}
}
override fun getCallableNames(): Set<Name> {
return useSiteMemberScope.getCallableNames()
}
override fun getClassifierNames(): Set<Name> {
return useSiteMemberScope.getClassifierNames()
}
}
// Unlike other cases, return types may be implicit, i.e. unresolved