Forrest Pangborn
01/28/2022, 7:25 PM@XYZ
.
When a processor resolving elements annotated with @XYZ
is applied to Module A, will the resulting processor execution resolve those elements from Module B that have been annotated with @XYZ
?Jiaxiang
01/28/2022, 7:33 PMgetSymbolsWithAnnotation
API, if you can find a way to get these symbols somehow, then you can still process them, but I won’t be optimistic on this.Forrest Pangborn
01/28/2022, 7:36 PMyou won’t be able to retrieve these annotated symbols in module B with KSP’sjust to clarify: this is because the sequence of elements from the resolver wouldn't include them? thanks so very much for the ridiculously quick reply btw 🙂APIgetSymbolsWithAnnotation
Jiaxiang
01/28/2022, 7:52 PMForrest Pangborn
01/28/2022, 7:55 PMgetDeclarationsFromPackage
to accomplish what i'm aiming for.Jiaxiang
01/28/2022, 8:29 PMForrest Pangborn
01/28/2022, 8:33 PMGrégory Lureau
01/29/2022, 1:13 PMForrest Pangborn
01/29/2022, 3:49 PMKustomExportGenerics
annotation is in the module where the processor is applied, right? so to conform it to my described scenario above:
• @file:KustomExportGenerics
is used in Module A, referencing classes from Module B.
• Processor is applied to Module A but can resolve KSClassDeclaration
instances for the classes in Module B that are referenced in the KustomExportGenerics
Grégory Lureau
01/30/2022, 7:09 PMForrest Pangborn
01/30/2022, 7:10 PM