Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-e committed Sep 27, 2023
1 parent 16ae684 commit 4cd623f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,14 @@ class PreviewProcessor(

@OptIn(KspExperimental::class)
override fun process(resolver: Resolver): List<KSAnnotated> {
val multiPreviewAnnotations = resolver.getMultiPreviewAnnotations()

val symbolsWithPreviewAnnotations = resolver
.getSymbolsWithAnnotation(COMPOSE_PREVIEW_ANNOTATION_NAME)
.toList()
val symbolsWithMultiPreviewAnnotations = resolver.getMultiPreviewAnnotations()

val previewAnnotatedFunctions = symbolsWithPreviewAnnotations
.functionsWithPreviewAnnotation()
val multiPreviewAnnotatedFunctions = multiPreviewAnnotations
val multiPreviewAnnotatedFunctions = symbolsWithMultiPreviewAnnotations
.functionsWithMultiPreviewAnnotation(resolver)

val previewFunctionMap = buildMap {
Expand Down

0 comments on commit 4cd623f

Please sign in to comment.