Symbol solver API in Kotlin

Hello community!

I parse Kotlin code using the PsiFileFactory for code analysis. The resulting abstract syntax tree contains no type information.
Now I wanted to know how I can use the symbol solver from the Kotlin compiler to accomplish type resolution.
Can you give me a hint or starting point?

Thanks for your consideration!

This is unfortunately not particularly easy to use, not stable and not documented, but you can look at how Dokka uses it:

1 Like