Tóth István Zoltán
03/27/2024, 11:55 AMFirDeclarationGenerationExtension.getTopLevelClassIds
to return with the ids to generate. The question is how should I find the functions declared in the current module?Javier
03/27/2024, 12:05 PMFqName
I think you can only use annotations. session.symbolProvider
couldn’t be used in that method if I remember correctly.Javier
03/27/2024, 12:06 PMTóth István Zoltán
03/27/2024, 12:07 PMJavier
03/27/2024, 12:08 PMTóth István Zoltán
03/27/2024, 12:09 PMTóth István Zoltán
03/27/2024, 12:10 PMJavier
03/27/2024, 12:10 PMTóth István Zoltán
03/27/2024, 12:11 PMTóth István Zoltán
03/27/2024, 12:12 PMJavier
03/27/2024, 12:12 PMJavier
03/27/2024, 12:12 PMTóth István Zoltán
03/27/2024, 12:14 PMJavier
03/27/2024, 12:16 PMFqName
before hand of those classes.Javier
03/27/2024, 12:16 PMTóth István Zoltán
03/27/2024, 12:18 PMfir
data from the session. Which is actually internal. But I decided to use it as I really, really hate annotations. They should not be used for everything, but they are usually used for almost everything.dmitriy.novozhilov
03/27/2024, 12:19 PMBut I don't know how to get all the top level functions of the packageYou can't
Javier
03/27/2024, 12:19 PMJavier
03/27/2024, 12:19 PMJavier
03/27/2024, 12:20 PMTóth István Zoltán
03/27/2024, 12:20 PMdmitriy.novozhilov
03/27/2024, 12:21 PMAlso, the generated code won't be visible from the IDE.In this case you need to generate it in IR, not in FIR
Tóth István Zoltán
03/27/2024, 12:22 PMTóth István Zoltán
03/27/2024, 12:23 PMdmitriy.novozhilov
03/27/2024, 12:33 PMTóth István Zoltán
03/27/2024, 12:36 PMdmitriy.novozhilov
03/27/2024, 12:37 PMpredicateBasedProvider
is needed only for plugins
Compiler doesn't need any kinds of lookups except lookups by full class name/simple name in scopeTóth István Zoltán
03/27/2024, 12:38 PMdmitriy.novozhilov
03/27/2024, 12:40 PM