Minor: expose DescriptorRender#renderMessage
This commit is contained in:
@@ -34,6 +34,8 @@ abstract class DescriptorRenderer : Renderer<DeclarationDescriptor> {
|
|||||||
return DescriptorRendererImpl(options)
|
return DescriptorRendererImpl(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
abstract fun renderMessage(message: String): String
|
||||||
|
|
||||||
abstract fun renderType(type: KotlinType): String
|
abstract fun renderType(type: KotlinType): String
|
||||||
|
|
||||||
abstract fun renderTypeArguments(typeArguments: List<TypeProjection>): String
|
abstract fun renderTypeArguments(typeArguments: List<TypeProjection>): String
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ internal class DescriptorRendererImpl(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun renderMessage(message: String): String {
|
override fun renderMessage(message: String): String {
|
||||||
return when (textFormat) {
|
return when (textFormat) {
|
||||||
RenderingFormat.PLAIN -> message
|
RenderingFormat.PLAIN -> message
|
||||||
RenderingFormat.HTML -> "<i>$message</i>"
|
RenderingFormat.HTML -> "<i>$message</i>"
|
||||||
|
|||||||
Reference in New Issue
Block a user