Rename buildErrorWithAttachment -> errorWithAttachment to emphasise the similar semantics to kotlin.error

This commit is contained in:
Ilya Kirillov
2023-06-30 15:53:54 +02:00
committed by Space Team
parent e3c31e1387
commit 2d791eb292
14 changed files with 43 additions and 43 deletions
@@ -5,10 +5,10 @@
package org.jetbrains.kotlin.analysis.utils.errors
import org.jetbrains.kotlin.utils.exceptions.buildErrorWithAttachment
import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
public fun unexpectedElementError(elementName: String, element: Any?): Nothing {
buildErrorWithAttachment("Unexpected $elementName ${element?.let { it::class.simpleName }}") {
errorWithAttachment("Unexpected $elementName ${element?.let { it::class.simpleName }}") {
withEntry(elementName, element) { element.toString() }
}
}