[IR] Support type arguments on annotations in IR render
This commit is contained in:
@@ -55,9 +55,16 @@ class RenderIrElementVisitor(private val normalizeNames: Boolean = false) : IrEl
|
|||||||
}
|
}
|
||||||
append(annotationClassName)
|
append(annotationClassName)
|
||||||
|
|
||||||
|
if (irAnnotation.typeArgumentsCount != 0) {
|
||||||
|
(0 until irAnnotation.typeArgumentsCount).joinTo(this, ", ", "<", ">") { i ->
|
||||||
|
irAnnotation.getTypeArgument(i)?.let { renderType(it) } ?: "null"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (irAnnotation.valueArgumentsCount == 0) return
|
if (irAnnotation.valueArgumentsCount == 0) return
|
||||||
|
|
||||||
val valueParameterNames = irAnnotation.getValueParameterNamesForDebug()
|
val valueParameterNames = irAnnotation.getValueParameterNamesForDebug()
|
||||||
|
|
||||||
var first = true
|
var first = true
|
||||||
append("(")
|
append("(")
|
||||||
for (i in 0 until irAnnotation.valueArgumentsCount) {
|
for (i in 0 until irAnnotation.valueArgumentsCount) {
|
||||||
|
|||||||
Reference in New Issue
Block a user