Tracey Yoshima
01/10/2023, 11:10 PMorigin.generated
field says generated == false, and origin.fromSource == true
.dmitriy.novozhilov
01/11/2023, 8:16 AMorigin.generated
means that element was created by compiler plugin
What you what is source.kind
. There is a number of different fake kinds, which declares that some element correspond to some AST element, but not actually presented in here
https://github.com/JetBrains/kotlin/blob/master/compiler/frontend.common/src/org/jetbrains/kotlin/KtSourceElement.kt#L22Tracey Yoshima
01/11/2023, 5:29 PM