Youssef Shoaib [MOD]
03/25/2021, 8:41 PMlet
from the stdlib, I want to get the descriptor for that call). I do realise that I can get the bindingContext
and use that to call ktExpression.getResolvedCall
but obviously I don't have access to that inside of a CollectAdditionalSourcesExtension
so what can I do here? I'm thinking maybe I can run analysis twice or something as in run it once inside of a CollectAdditionalSourcresExtension
and generate the files and then let the compiler do its own analysis normally but is that the right approach?raulraja
03/26/2021, 8:54 AMRetryWithAdditionalRoots
as analysis result in which you launch a new analysis with the new files you’ve generated but that is part of the api that may go away with FIR. @shikasd has a clean example 🙏 of that API here https://github.com/ShikaSD/kotlin-compiler-plugin-retry-with-additional-roots/blob/master/compiler-plugin/src/main/kotlin/Plugin.kt#L30raulraja
03/26/2021, 9:02 AM