Skip to content

Instantly share code, notes, and snippets.

@dilrajsingh1997
Last active January 24, 2022 08:09
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 dilrajsingh1997/7f38dbdc3973e31a3cd26c65ed910179 to your computer and use it in GitHub Desktop.
Save dilrajsingh1997/7f38dbdc3973e31a3cd26c65ed910179 to your computer and use it in GitHub Desktop.
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