Youssef Shoaib [MOD]
11/06/2022, 3:28 PMFirPredicateBasedProvider
seems to only work for the files being compiled. Is there a simple way to loop over all imported library methods and filter them manually? Or would that be too costly? I can see how to find the FQNs for imported packages and methods, but then I'm not sure how to loop over their "visible" methods. I'm doing this for caching reasons, so if I accidentally get methods that aren't visible, that's still fine.
In other words, I'm looking for the FIR equivalent of module.getPackage(fqName).memberScope.getContributedDescriptors()
dmitriy.novozhilov
11/07/2022, 10:17 AMFirPredicateBasedProvider
precaches all source declartions with annotations to provide high performance of all lookup method
To support it for for declarations from dependencies it's needed to load all declarations from classpath which is too slow (deserialization of class files is one of most slow operations)dmitriy.novozhilov
11/07/2022, 10:18 AMYoussef Shoaib [MOD]
11/07/2022, 10:34 AM@X
so that in IR I want to replace a call to getXByType<T>()
with a function annotated with X
that returns T
(so very basic DI). How can I add that list to my binary somehow so that in IR I can loop over that list of FQNs and find my desired function?dmitriy.novozhilov
11/07/2022, 10:37 AMdmitriy.novozhilov
11/07/2022, 10:38 AMYoussef Shoaib [MOD]
11/07/2022, 11:25 AMdmitriy.novozhilov
11/07/2022, 11:28 AMdmitriy.novozhilov
11/07/2022, 11:29 AMYoussef Shoaib [MOD]
11/07/2022, 11:38 AMdmitriy.novozhilov
11/07/2022, 11:38 AMYoussef Shoaib [MOD]
11/08/2022, 11:25 AM