Skip to content

Instantly share code, notes, and snippets.

Last active Jan 24, 2022
What would you like to do?
val annotation: KSAnnotation = classDeclaration.annotations.first {
it.shortName.asString() == "ComposeDestination"
val route = classDeclaration.simpleName.asString()
// this will contain the class variables
val properties: Sequence<KSPropertyDeclaration> = classDeclaration.getAllProperties()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment