https://kotlinlang.org logo
#ksp
Title
# ksp
n

Norbi

12/05/2023, 4:46 PM
From the docs: https://kotlinlang.org/docs/ksp-multi-round.html#information-consistent-cross-rounds
All KSP symbols will not be reusable across multiple rounds, as the resolution result can potentially change based on what was generated in a previous round. However, since KSP does not allow modifying existing code, some information such as the string value for a symbol name should still be reusable. To summarize, processors can store information from previous rounds but need to bear in mind that this information might be invalid in future rounds.
Is it safe to store and reuse
KSType
objects in multiple rounds? Thanks.
🚫 1
😞 1