Skip to content

Instantly share code, notes, and snippets.

@Morfly
Last active July 15, 2021 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morfly/5bd22cedf0f0f5e8f658c7129272e3f9 to your computer and use it in GitHub Desktop.
Save Morfly/5bd22cedf0f0f5e8f658c7129272e3f9 to your computer and use it in GitHub Desktop.
KSP function processor, process function, visitor
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