Last active
July 15, 2021 18:53
-
-
Save Morfly/5bd22cedf0f0f5e8f658c7129272e3f9 to your computer and use it in GitHub Desktop.
KSP function processor, process function, visitor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FunctionProcessor(...) : SymbolProcessor { | |
override fun process(resolver: Resolver): List<KSAnnotated> { | |
... | |
symbols.forEach { it.accept(Visitor(file), Unit) } | |
file.close() | |
val unableToProcess = symbols.filterNot { it.validate() }.toList() | |
return unableToProcess | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment