[IR] KotlinLikeDumper: change rendering for IrInstanceInitializerCall
This commit is contained in:
committed by
teamcityserver
parent
ab8188b032
commit
26dd009713
@@ -961,6 +961,12 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption
|
|||||||
p.printWithNoIndent(")")
|
p.printWithNoIndent(")")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun visitInstanceInitializerCall(expression: IrInstanceInitializerCall, data: IrDeclaration?) {
|
||||||
|
// TODO assert that `expression.classSymbol.owner == data.parentAsClass
|
||||||
|
// TODO better rendering
|
||||||
|
p.printlnWithNoIndent("/* <init>() */")
|
||||||
|
}
|
||||||
|
|
||||||
override fun visitFunctionExpression(expression: IrFunctionExpression, data: IrDeclaration?) {
|
override fun visitFunctionExpression(expression: IrFunctionExpression, data: IrDeclaration?) {
|
||||||
// TODO support
|
// TODO support
|
||||||
// TODO omit the name when it's possible
|
// TODO omit the name when it's possible
|
||||||
@@ -1078,10 +1084,6 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption
|
|||||||
p.printWithNoIndent("::class")
|
p.printWithNoIndent("::class")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitInstanceInitializerCall(expression: IrInstanceInitializerCall, data: IrDeclaration?) {
|
|
||||||
p.println("/* InstanceInitializerCall */")
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun visitTypeOperator(expression: IrTypeOperatorCall, data: IrDeclaration?) {
|
override fun visitTypeOperator(expression: IrTypeOperatorCall, data: IrDeclaration?) {
|
||||||
val (operator, after) = when (expression.operator) {
|
val (operator, after) = when (expression.operator) {
|
||||||
IrTypeOperator.CAST -> "as" to ""
|
IrTypeOperator.CAST -> "as" to ""
|
||||||
|
|||||||
Reference in New Issue
Block a user