Is there a way I can easily filter `KSPropertyDecl...
# squarelibraries
c
Is there a way I can easily filter `KSPropertyDeclaration`s by type, using KotlinPoet? I’m looking to make sure I’m only getting properties that are
kotlin.collections.Set
. Currently, I’m comparing declarations, but I’m hoping there’s a better way
Copy code
declaration.type.resolve().declaration == resolver.getClassDeclarationByName("kotlin.collections.Set")?.asStarProjectedType()?.declaration
Comparing `ClassName`s seems to work:
Copy code
declaration.type.resolve().toClassName() == Set::class.asClassName()