Daniil Elovkov
09/07/2023, 10:25 AMresolver.getSymbolsWithAnnotation()
returns duplicates in the sequence?
I believe it’s due to this code in ResolverImpl
private val deferredSymbolsUpdated: Collection<KSAnnotated> by lazy {
deferredSymbols.values.flatten().mapNotNull { it.getInstanceForCurrentRound() }
}
where deferredSymbols
is a map with SymbolProcessor as key.
In my case, more than one SymbolProcessor defer same symbols, so that looks like the cause. Because values.flatten
would result in duplicatesJiaxiang
09/07/2023, 6:01 PMDaniil Elovkov
09/07/2023, 7:13 PMJiaxiang
09/07/2023, 8:00 PM