FIR IDE: implement getCallableNames/getClassifierNames in more scopes
This commit is contained in:
@@ -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()
|
||||
|
||||
+8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user