Skip to content

Instantly share code, notes, and snippets.

@dilrajsingh1997
Last active Jan 24, 2022
Embed
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