Johann Pardanaud
10/23/2023, 2:33 PMjvmusin
10/23/2023, 2:58 PMf
which accepts a function like (parameters) -> T
, and f
method calls the constructor through the passed constructor referenceJohann Pardanaud
10/23/2023, 3:06 PMSomeClass
, is it possible to find them in the following code?
val topVar = SomeClass()
fun main() {
SomeClass()
}
Is it possible with K2 to find both instanciations?jvmusin
10/23/2023, 3:10 PMIrElementTransformerVoidWithContext*.*visitConstructorCall
. See here: https://github.com/jvmusin/naked/blob/main/naked-kotlin-plugin/src/main/kotlin/io/github/jvmusin/naked/NakedIrGenerationExtension.kt#L142C50-L142C50dmitriy.novozhilov
10/23/2023, 3:10 PMJohann Pardanaud
10/23/2023, 3:11 PM