Jörg Winter
12/05/2022, 10:21 AMraulraja
12/05/2022, 11:15 AMraulraja
12/05/2022, 11:16 AMJörg Winter
12/05/2022, 3:23 PMJörg Winter
12/05/2022, 3:25 PMraulraja
12/05/2022, 3:53 PMorg.jetbrains.kotlin.resolve.extensions.AnalysisHandlerExtension
If you use the new FIR you can do similar with the symbolProvider and it's also slow as this may load properties in the tree that are lazy to compute it all.
Alternatively depending on how you plan on using the output you can use a library like Classgraph which we have used for similar purposes in some plugins. Also slow.
What we do is usually emit an index object in a package that declares a single list with all dependencies so later it's fast to read it https://github.com/arrow-kt/arrow-reflection/blob/main/arrow-reflect-compiler-plug[…]n/arrow/reflect/compiler/plugin/targets/ClasspathMetaScanner.kt The use the kotlin reflection api to get a KClass for any java class classgraph returns