[FIR] Implement toString in FirTypeRefSource

This commit is contained in:
Kirill Rakhman
2024-02-07 10:45:31 +01:00
committed by Space Team
parent 3dede06d51
commit 9391ff8179
@@ -569,7 +569,11 @@ fun extractArgumentsTypeRefAndSource(typeRef: FirTypeRef?): List<FirTypeRefSourc
return result
}
data class FirTypeRefSource(val typeRef: FirTypeRef?, val source: KtSourceElement?)
data class FirTypeRefSource(val typeRef: FirTypeRef?, val source: KtSourceElement?) {
override fun toString(): String {
return "FirTypeRefSource(typeRef=${typeRef?.render()}, source=${source?.kind?.javaClass?.simpleName})"
}
}
val FirClassLikeSymbol<*>.classKind: ClassKind?
get() = (this as? FirClassSymbol<*>)?.classKind