FIR2IR: create local classes on the fly properly

This commit is contained in:
Mikhail Glukhikh
2021-10-29 16:27:19 +03:00
committed by teamcity
parent a05244eca1
commit 67a05883d6
17 changed files with 516 additions and 67 deletions
@@ -0,0 +1,33 @@
class Serializer {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun serialize() {
val messageCollector: <no name provided> = <this>.createMessageCollector()
try { // BLOCK
}
catch (e: Throwable){ // BLOCK
messageCollector.flush()
}
}
private fun createMessageCollector(): <no name provided> {
return { // BLOCK
local class <no name provided> : Collector {
private constructor() /* primary */ {
super/*Collector*/()
/* <init>() */
}
}
<no name provided>()
}
}
}