Files
kotlin-fork/compiler/testData/ir/irText/firProblems/AnnotationLoader.kt.txt
T
2024-02-16 10:19:38 +00:00

91 lines
1.8 KiB
Kotlin
Vendored

class AnnotationLoader {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun loadAnnotation(): Visitor? {
return { // BLOCK
local class <no name provided> : Visitor {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
private fun foo() {
}
override fun visit() {
}
override fun visitAnnotation(): Visitor? {
val visitor: Visitor = CHECK_NOT_NULL<Visitor>(arg0 = <this>.loadAnnotation())
return { // BLOCK
local class <no name provided> : Visitor {
private /* final field */ val $$delegate_0: Visitor = visitor
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
override fun visitAnnotation(): Visitor? {
return <this>.#$$delegate_0.visitAnnotation()
}
override fun visitArray(): Visitor? {
return <this>.#$$delegate_0.visitArray()
}
override fun visit() {
}
}
<no name provided>()
}
}
override fun visitArray(): Visitor? {
return { // BLOCK
local class <no name provided> : Visitor {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
override fun visit() {
<this>.foo()
}
}
<no name provided>()
}
}
}
<no name provided>()
}
}
}
interface Visitor {
abstract fun visit()
fun visitAnnotation(): Visitor? {
return null
}
fun visitArray(): Visitor? {
return null
}
}