Skip to content

Commit 50e7675

Browse files
authored
Improve ksp error handling upon compilation issues (#607)
* Improve ksp error handling upon compilation issues * Fix compilation error
1 parent 21b44a4 commit 50e7675

File tree

1 file changed

+4
-0
lines changed
  • kt/entry-generation/godot-kotlin-symbol-processor/src/main/kotlin/godot/annotation/processor/ext

1 file changed

+4
-0
lines changed

kt/entry-generation/godot-kotlin-symbol-processor/src/main/kotlin/godot/annotation/processor/ext/ksDeclarationExt.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ fun KSClassDeclaration.hasCompilationErrors(): Boolean = superTypes
66
.toList()
77
.any { superTypeDeclaration -> superTypeDeclaration.resolve().isError }
88
|| this.asStarProjectedType().isError
9+
|| this.getAllProperties().any { property -> property.type.resolve().isError }
10+
|| this.getAllFunctions().any { function ->
11+
function.returnType?.resolve()?.isError == true || function.parameters.any { param -> param.type.resolve().isError }
12+
}

0 commit comments

Comments
 (0)