[Analysis API] introduce base KtTypeScope -> KtScope converter
This commit is contained in:
+4
@@ -7,4 +7,8 @@ package org.jetbrains.kotlin.analysis.utils.errors
|
||||
|
||||
public fun unexpectedElementError(elementName: String, element: Any?): Nothing {
|
||||
error("Unexpected $elementName ${element?.let { it::class.simpleName }}")
|
||||
}
|
||||
|
||||
public inline fun <reified ELEMENT> unexpectedElementError(element: Any?): Nothing {
|
||||
unexpectedElementError(ELEMENT::class.simpleName ?: ELEMENT::class.java.name, element)
|
||||
}
|
||||
Reference in New Issue
Block a user