axeon
05/17/2024, 12:58 PMaxeon
05/17/2024, 1:00 PMaxeon
05/17/2024, 5:21 PMDavid Rawson
05/17/2024, 10:23 PMJiaxiang
05/17/2024, 11:56 PMe: *[*ksp*]* kotlin.io.FileAlreadyExistsException
make sure you are not creating a same file multiple times.axeon
05/18/2024, 1:48 PMDavid Rawson
05/19/2024, 3:51 AMaxeon
05/19/2024, 6:38 AMKSFunctionDeclaration
rather than KSFunction
. Now, the generated file has unchecked cast warnings that I want to suppress using @file:Suppress("UNCHECKED_CAST")
. How can I possibly do that? It may look like bad practice, but I'm confident that all the casts are valid.David Rawson
05/19/2024, 8:37 PMval utils = FileSpec.builder("com.example", "Utils")
.addAnnotation(
AnnotationSpec.builder(Suppress::class)
.useSiteTarget(UseSiteTarget.FILE)
.addMember("names = %S", "UNCHECKED_CAST")
.build()
)
axeon
05/20/2024, 7:03 AM