[FIR] Add toString to all type scopes
This commit is contained in:
+4
@@ -347,6 +347,10 @@ class FirClassSubstitutionScope(
|
||||
override fun getClassifierNames(): Set<Name> {
|
||||
return useSiteMemberScope.getClassifierNames()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "Substitution scope for [$useSiteMemberScope] for type $dispatchReceiverTypeForSubstitutedMembers"
|
||||
}
|
||||
}
|
||||
|
||||
class FirSubstitutionOverrideStorage(val session: FirSession) : FirSessionComponent {
|
||||
|
||||
+4
@@ -55,4 +55,8 @@ class FirClassUseSiteMemberScope(
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "Use site scope of $classId"
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -83,4 +83,8 @@ class FirScopeWithFakeOverrideTypeCalculator(
|
||||
|
||||
override val scopeOwnerLookupNames: List<String>
|
||||
get() = delegate.scopeOwnerLookupNames
|
||||
|
||||
override fun toString(): String {
|
||||
return delegate.toString()
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -127,6 +127,10 @@ class FirTypeIntersectionScope private constructor(
|
||||
return scopes.flatMapTo(hashSetOf()) { it.getClassifierNames() }
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "Intersection of [${scopes.joinToString(", ")}]"
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun prepareIntersectionScope(
|
||||
session: FirSession,
|
||||
|
||||
Reference in New Issue
Block a user