[FE 1.0/FIR] Fix message of SEALED_SUPERTYPE_IN_LOCAL_CLASS diagnostic
^KT-46285 Fixed
This commit is contained in:
committed by
teamcityserver
parent
94664694df
commit
06a26a5a74
+13
@@ -6,6 +6,7 @@
|
||||
package org.jetbrains.kotlin.diagnostics.rendering
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil
|
||||
import org.jetbrains.kotlin.descriptors.ClassKind
|
||||
import org.jetbrains.kotlin.types.Variance
|
||||
import java.io.PrintWriter
|
||||
import java.io.StringWriter
|
||||
@@ -33,6 +34,18 @@ object CommonRenderers {
|
||||
}
|
||||
}
|
||||
|
||||
@JvmField
|
||||
val CLASS_KIND = Renderer { classKind: ClassKind ->
|
||||
when (classKind) {
|
||||
ClassKind.CLASS -> "class"
|
||||
ClassKind.INTERFACE -> "interface"
|
||||
ClassKind.ENUM_CLASS -> "enum class"
|
||||
ClassKind.ENUM_ENTRY -> "enum entry"
|
||||
ClassKind.ANNOTATION_CLASS -> "annotation class"
|
||||
ClassKind.OBJECT -> "object"
|
||||
}
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun <T> commaSeparated(itemRenderer: DiagnosticParameterRenderer<T>) = ContextDependentRenderer<Collection<T>> { collection, context ->
|
||||
buildString {
|
||||
|
||||
Reference in New Issue
Block a user