KTIJ-22157 Make KtCallError attachment name static

This commit is contained in:
Bart van Helvert
2022-07-07 13:59:57 +02:00
committed by teamcity
parent 0c50072436
commit 21f65b2fe3
@@ -53,6 +53,6 @@ public interface KtCallResolverMixIn : KtAnalysisSessionMixIn {
}
private inline fun <reified PSI : KtElement> unresolvedKtCallError(element: PSI): Nothing {
throw KotlinExceptionWithAttachments("${PSI::class.simpleName} should always resolve to a KtCallInfo")
.withAttachment(element::class.simpleName ?: "element", element.getElementTextInContext())
throw KotlinExceptionWithAttachments("${PSI::class.simpleName}(${element::class.simpleName}) should always resolve to a KtCallInfo")
.withAttachment("elementText", element.getElementTextInContext())
}