Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
KSP function processor, process function
class FunctionProcessor(...) : SymbolProcessor {
override fun process(resolver: Resolver): List<KSAnnotated> {
val symbols = resolver
.getSymbolsWithAnnotation("com.morfly.Function")
.filterIsInstance<KSClassDeclaration>()
if (!symbols.iterator().hasNext()) return emptyList()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment