-
public interface SymbolProcessorSymbolProcessor is the interface used by plugins to integrate into Kotlin Symbol Processing. SymbolProcessor supports multiple rounds of execution, a processor may return a list of deferred symbols at the end of every round, which will be passed to processors again in the next round, together with the newly generated symbols. On exceptions, KSP will try to distinguish between exceptions from KSP and exceptions from processors. Exceptions from processors will immediately terminate processing and be logged as an error in KSPLogger. Exceptions from KSP should be reported to KSP developers for further investigation. At the end of the round where exceptions or errors happened, all processors will invoke onError() function to do their own error handling.
-
-
Method Summary
Modifier and Type Method Description abstract List<KSAnnotated>process(Resolver resolver)Called by Kotlin Symbol Processing to run the processing task. Unitfinish()Called by Kotlin Symbol Processing to finalize the processing of a compilation. UnitonError()Called by Kotlin Symbol Processing to handle errors after a round of processing. -
-
Method Detail
-
process
abstract List<KSAnnotated> process(Resolver resolver)
Called by Kotlin Symbol Processing to run the processing task.
- Parameters:
resolver- provides SymbolProcessor with access to compiler details such as Symbols.
-
finish
Unit finish()
Called by Kotlin Symbol Processing to finalize the processing of a compilation.
-
-
-
-